0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

いつも忘れるGitコマンド

Last updated at Posted at 2015-07-23

diff across branches
git diff hoge fuga foo.txt

checkout tag
git checkout -b tagname refs/tags/tagname

pull branch
git checkout -b newbranch origin/newbranch

merge remote develop change
git checkout develop && git merge origin/develop

untrack files
git rm -r --cached "path/to/foo/"

submodule update
git submodule update --init --recursive

squash commits
http://labs.timedia.co.jp/2010/11/git-squash-commits.html

submodule local repo
git submodule add --reference /path/to/local_repo git://example.com/repo.git

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?