Skip to content

Instantly share code, notes, and snippets.

@Cyber-Neuron
Created March 16, 2017 10:22
Show Gist options
  • Save Cyber-Neuron/6d070545f85d490c161df81703cf2a22 to your computer and use it in GitHub Desktop.
Save Cyber-Neuron/6d070545f85d490c161df81703cf2a22 to your computer and use it in GitHub Desktop.
Git commands
set to bare: git config --bool core.bare true
switch branch in bare: git symbolic-ref HEAD refs/heads/XXXXX
push to remote: git push REMOTE_NAME BRANCH_NAME
add a remote working copy: git remote add pb https://github.com/paulboone/ticgit
@Cyber-Neuron
Copy link
Author

switch bare branch
git symbolic-ref HEAD refs/heads/mybranch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment