Sunday, November 01, 2009

Some Git Tips

  1. git add -u to add all modified files in the index.
  2. git checkout -f to trash all uncommitted changes. Useful before pulling.
  3. git stash as an alternative to above.
  4. git diff --cached to see the added changes.
  5. git rebase to squash multiple commits into a commit before pushing. Rebasing is useful for other stuff, but that needs more exploration.   git rebase -i origin/master to merge all unpushed commits.
  6. git commit --amend might be an alternative for that as well. 
  7. See here for some other tips.

1 comment:

ilainahfahner said...

Casinos Near Casinos Near Casinos in Atlantic City, NJ
A map showing casinos 울산광역 출장안마 and other gaming facilities located 충주 출장샵 near Casinos 오산 출장마사지 in Atlantic City, NJ. Golden Nugget Atlantic City: Golden 문경 출장안마 Nugget. 제주도 출장안마