VADMARK

Commands

Feb 19th, 2020
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!

git status -s : Dive the output in the short-format.

git log --oneline -<n> : Show only the last <n> commits.

git checkout -b <branch> --track <remote>/<branch> : Switch branches or restore working tree files. Specifying -b cause a new branch to be created. --track when creating a new branch, set up "upstream" configuration.

git merge --no-ff <branch_name> : Create a merge commit in all cases, even when the merge could instread be resolved as a fast-forward.

git branch --merged <branch_name> : Show the list to output only those branches that merged into the <branch_name>.

git -d <branch_name> : To delete the local branch.

git cherry-pick <commit>... : Apply the changes introduced by some existing commits.

git revert <commit>... : Revert some existing commits.

git commit --amend -m <message> : Change the message of the last commit.

git rm --cached -r <folder>/* : Recursive add folder in untracked section.

git config --get remote.origin.url : Show repository link.

Add Comment
Please, Sign In to add comment