Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 929 Bytes

File metadata and controls

39 lines (28 loc) · 929 Bytes

Rebase

perform a rebase and keep Version of HEAD in case of a conflict

image

git rebase -X theirs foo

Stash

Add a named stash

git stash save stash_name

List named stashes

git stash list

Unstash a named stash

git stash pop stash@{1}

stash a single file

git stash push -m stash@{0} ~/foo.rb

unstash a single file

git co stash@{0} path/foo.rb

git stash including untracked files

git stash --all

Miscellaneous

Applying .gitignore to committed files

  • Edit .gitignore as you wish
  • git rm -r --cached .
  • git add .

Sync origin and local branch

git branch --set-upstream-to=origin/<branch> development

show differing logs between branches

git log release/v6.8.0..master

git log time from now

git tblame