Professional Documents
Culture Documents
git diff *.duoi : xem su khac biet giua hien tai va ban da commit.
git checkout *.duoi : hoan lai file ve trang thai commit gan nhat.
git diff -u : is used to compare two files, line by line, and have the differing
lines compared side-by-side in the same output.
git reset : basically resets the repo, throwing away some changes.
git revert : makes a new commit which effectively rolls back a previous commit.
It's a bit like an undo command.
git merge --abort : If there are merge conflicts (meaning files are incompativle),
--abort can be used to abort the merge action.
git log --graph --oneline : This shows a summarized view of the commit history for
a repo.
/*******************GIT HUB************************************/
git clone URL : Used to clone a remote repository into a local workspace
git push : Used to push commits from your local repo to a remote repo.
git pull : Used to fetch the newest updates from a remote repository.
git branch -r : Lists remote branches; can be combined with other branch arguments
to manage remote branches
/******************GIT MORE***********************/
git rebase
git revert
git branch -f <branch> HEAD~x
git checkout HEAD~x
git rebase -i
git cherry-pick
git fakeTeamwork
git push origin <source>:<destination>
git fetch origin <source>:<destination>
git push origin :<source>
git fetch origin :<source>