Useful Git Commands and Tips/Tricks
A collection ofuseful and helpful git commands and tricks I have amassed over the years.Published Jan 19, 2012 by lobo235
Git is an amazing revision control system because it is so powerful. With this power comes complexity, however, so it's not always easy to figure out the git commands you need to run to accomplish a particular task. Over the years I have been collecting the following list of commands to which I often refer when I need to accomplish a specific task.
See a list of commits since your last push
git log origin/branch_name..
Modify all commits since the last push
git rebase -i origin/branch_name
Rename a git branch
git branch -m old_branch_name new_branch_name
Fix the last git commit (change the commit message, add more changes to the commit, or both)
git commit --amend
Show the list of files that changed in the log
git log --name-status
0 comments for this article.
Showing/Hiding a DIV using the Off-Left Method