LoginSignup
1
1

More than 5 years have passed since last update.

忘れやすいのでちょっとしたメモ的なもの - git編 -

Last updated at Posted at 2015-09-20

忘れやすいのでちょっとしたメモ的なもの - git編 -

・インデックスに登録
  git add

・コミット
  git commit -m "コメント"

・プッシュ
  git push origin branch

・リモートリポジトリのURL変更
  git remote set-url リポジトリの名前 新しいurl

・リモートブランチの削除
  git push リポジトリの名前 :ブランチ名

・ステージングエリアから消去
git reset <ファイル名>

・ローカルを残したままリモートを削除
  git push -f origin HEAD^:master

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1