Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://www.artandlogic.com/blog/2014/01/git-cheat-sheet/
- git show-ref --tags --abbrev
- ===========================================================================
- http://stackoverflow.com/questions/1404796/how-to-get-the-latest-tag-name-in-current-branch-in-git
- ===========================================================================
- git describe --abbrev=0 --tags
- ===========================================================================
- http://stackoverflow.com/questions/1862423/git-how-to-tell-which-commit-a-tag-points-to
- git show-ref $TAG
- ===========================================================================
- Synchronize our local branches with all remote branches , if find that remote branch is removed, then remove this branch locally
- git remote update --prune
- Create a branch based on commit
- git branch 7.x-1.x d0ea9c6
- http://stackoverflow.com/questions/1064361/unable-to-show-a-git-tree-in-terminal
- git tree
- A solution is to create an Alias in your .gitconfig and call it easily
- [alias] tree = log --graph --decorate --pretty=oneline --abbrev-commit
- git config alias.lol 'log --pretty=oneline --abbrev-commit --graph --decorate'
- http://stackoverflow.com/questions/1862423/git-how-to-tell-which-commit-a-tag-points-to
- http://mislav.uniqpath.com/2010/07/git-tips/
- http://snarvaez.com.ar/libertad/index.php/2009/01/22/git-sistema-de-versionado-rapido-y-distribuido/
- ==================================================================================
- http://adventuresincoding.com/2010/04/how-to-setup-git-to-use-diffmerge
- Visual Mergetool Configuration====
- git config --global merge.tool diffmerge
- git config --global mergetool.diffmerge.cmd "diffmerge --merge
- --result=\$MERGED \$LOCAL \$BASE \$REMOTE"
- git config --global mergetool.diffmerge.trustExitCode true
- Don’t store backups====
- git config --global mergetool.keepBackup false
- Visual Difftool Configuration===
- git config --global diff.tool diffmerge
- git config --global difftool.diffmerge.cmd "diffmerge \$LOCAL \$REMOTE"
- ===================
- git difftool 71c8c69 b8ca6fe nice_menus_ana.css
- =====================================================================
- http://stackoverflow.com/questions/373812/rollback-file-to-much-earlier-version
- git checkout <commit hash> file
- git checkout 71c8c69 nice_menus_ana.css
- git checkout <commit hash> file
- git commit -a
- git checkout f54d635 sites/all/modules/custom/boletin/boletin.module
- ====================
- deshaceer cambios
- git reset --hard ORIG_HEAD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement