Guest User

A1 git instructions

a guest
Apr 5th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1.  
  2. 1. Once you are finished working it is time to 'commit' your work to your remote repository on GitHub. You will want to do this periodically while you are working to make a backup of your work and to make your final submission. We will keep the process very simple by simply 'committing' the master branch of your local repository into the remote repository on GitHub.
  3.  
  4. 2. The first step is to add any new files into the repository so they can be tracked.
  5.  
  6. ```bash
  7. $ git add *
  8. ```
  9.  
  10. 3. Then we commit any new and or changed files to the repository. The text after the -m is for you to describe what is included in this commit to the repository.
  11.  
  12. ```bash
  13. $ git commit -m "Description of what I did"
  14. ```
  15.  
  16. 4. Finally, we need to push these changes up to our remote repository on GitHub. This is a very important step! Without it you are not copying your work back to GitHub and we will not be able to see it if you forget.
  17.  
  18. ```bash
  19. $ git push remote origin
  20. ```
  21.  
  22. 5. You can repeat these commands as often as you feel the need as your work on your assignment. However, again, you must always make a final push to GitHub when you are finished in order to submit your work.
Advertisement
Add Comment
Please, Sign In to add comment