a list of handy git commands
# check the change of the file
git diff filename
# check in parital change of the file -p flag will show us the change in patch level
git add -p filename
# use git commit to enter the concise message
git commit
# use git log to check the commit history to ensure the change had been commit
git log
# create a branch
git branch test
# use the branch
git checkout test
# push the change back to the repository
git push --set-upstream origin test
# merge the change
git merge test
# undo the merge and rebase
git merge --abort
git rebase--abort
#use mergetool to perform the merge
git mergetool
No comments:
Post a Comment