Posted By

flatearthcomms on 05/17/14


Tagged

unix apple terminal git


Versions (?)

Set up a .git repository using terminal


 / Published in: Other
 

Set up a .git repository using terminal

  1. cd /drag/folder/in/from/finder
  2.  
  3. git init
  4.  
  5. git add .
  6.  
  7. git commit -m "Adding Project"
  8.  
  9. git push -u origin master
  10.  
  11. # From now on, send with
  12. cd /drag/folder/in/from/finder/if/not/aready/there
  13. git push
  14.  
  15. # Retrieve lastest copy with
  16. cd /drag/folder/in/from/finder/if/not/aready/there
  17. git pull

Report this snippet  

You need to login to post a comment.