Wednesday, May 18, 2016

Other Git Commands

To set up a Github repo to be accessed by others and yourself, go to Github.com.


  1. Go through the steps for setting up an account and then create a new repository.
  2. Write the ReadMe explaining what exactly the repo will be containing.
  3. In the terminal where you want the repo to be saved locally, type git clone <http link from github>
  4. Manually copy the files from your machine to the local directory you just created using git clone and then type "git add ." (Yes the period is necessary to add ALL of the files that have been copied to the directory.
  5. Type git commit -am "string describing what you are committing (you choose this)"
  6. Type git push

No comments:

Post a Comment