Skip to content

Instantly share code, notes, and snippets.

@PellePedro
Last active December 22, 2015 10:38
Show Gist options
  • Save PellePedro/6459638 to your computer and use it in GitHub Desktop.
Save PellePedro/6459638 to your computer and use it in GitHub Desktop.
System: Git Hints
Free Git client for OSX and Win
--------------------------------
http://www.sourcetreeapp.com/
Videos
--------------------------------
The Fringes of Git: https://www.youtube.com/watch?v=qh-R0-7Ii_U
Git From the Bits Up http://www.youtube.com/watch?v=MYP56QJpDr4
Advanced Git: Graphs, Hashes, and Compression, Oh My! https://www.youtube.com/watch?v=ig5E8CcdM9g
Power Your Workflow With Git https://www.youtube.com/watch?v=GYnOwPl8yCE
---------------------------------------
Export Directory to new Repository
// alternative to the subtree: git filter-branch --subdirectory-filter precom-mediacontroller -- --all
http://stackoverflow.com/questions/359424/detach-subdirectory-into-separate-git-repository/17864475#17864475
pushd existing_repo/
git subtree split -P directoryToExport -b newBranch
popd
mkdir newRepo
pushd newRepo
git init
git pull ../existing_repo newBranch
git remote add origin git@server/newRepo.git
git push origin -u master
---------------------------------------
Git Hints
git log --onliner
git rebase master
git rebase -i <commit_base>
git reflog
git reset --hard <commit_id>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment