Skip to content

Instantly share code, notes, and snippets.

View karabulut's full-sized avatar

Yunus Emre Karabulut karabulut

View GitHub Profile
cd ~/projects/myproject
git init
git add .
git clone ~/existing/repo ~new/repo
git clone you@host:dir/project.git (default protocol is ssh)
mkdir repo.git && cd repo.git
git init --bare[--shared=group]
git fetch (this does not merge them)
git pull (does a fetch followed by a merge)
git am -3 patch.mbox (In case of conflict, resolve the conflict and)
git am --resolve
git commit -a
git commit -m "descriptive message"
git format-patch origin
git push [origin][branch]