Set up a .git repository using terminal


/ Published in: Other
Save to your folder(s)

Set up a .git repository using terminal


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.