salahuddien

GIT

Jun 1st, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. * create empty branch [https://stackoverflow.com/a/34100189/9446622]
  2. 1. git checkout --orphan empty-branch
  3. 2. git rm -rf .
  4. 3. git commit --allow-empty -m "root commit"
  5. 4. git push origin empty-branch
  6.  
  7. * delete branch
  8. (local)
  9. 1. git branch -d meong
  10. (remote)
  11. 1. git push origin --delete meong
Advertisement
Add Comment
Please, Sign In to add comment