Advertisement
Guest User

Untitled

a guest
Nov 1st, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. git clone ssh://user@server/Users/GitRepo/Project.git
  2. <create file locally>
  3. git add <localfile>
  4. git commit -m "Narg"
  5. git push
  6.  
  7. git clone ssh://user@server/Users/GitRepo/Project.git
  8. git status
  9.  
  10. # Not currently on any branch
  11. # Untracked files:
  12. followed by a long list of Untracked files.
  13.  
  14. git remote show origin
  15.  
  16. * remote origin
  17. Fetch URL: ssh://user@server/Users/GitRepo/Project.git
  18. Push URL: ssh://user@server/Users/GitRepo/Project.git
  19. HEAD branch: master
  20. Remote branch:
  21. master tracked
  22. Local branch configured for 'git pull':
  23. master merges with remote master
  24. Local ref configured for 'git push':
  25. master pushed to master (up to date)
  26.  
  27. git branch -a
  28.  
  29. * (no branch)
  30. master
  31. remotes/GitRepo/master
  32. remotes/origin/HEAD -> origin/master
  33. remotes/origin/master
  34.  
  35. git config --global alias.gr 'log --graph --full-history --all --color --decorate'
  36.  
  37. git gr
  38.  
  39. git checkout master
  40. git add yourfile.txt
  41. git commit -m'Narg'
  42. git push
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement