10. Working with remote repos Public Repo Located on Server (Github) Private Repo Located on your local machine git pull git push
11.
12.
13.
14.
15.
16.
17. Remote repos process Public Repo Located on Server (Github) Private Repo Located on your local machine git push Make file changes Stage Changes Commit Changes git add filename git commit -m ‘…’ vi filename
18.
19.
20. Remote repos process (multiple committers) Public Repo Located on Server (Github) Private Repo Located on your local machine 1) git push Make file changes Stage Changes Commit Changes git add filename git commit -m ‘…’ vi filename Bob’s Private Repo Located on Bob’s local machine 2) git pull
21. Remote repos process (multiple committers) Public Repo Located on Server (Github) Private Repo Located on your local machine 2) git pull Bob’s Private Repo Located on Bob’s local machine Make file changes Stage Changes Commit Changes git add filename git commit -m ‘…’ vi filename 1) git push
22.
23.
Editor's Notes
This presentation will cover the basics of the Git Workflow and how it works.
The working directory is where you make changes to your files. By staging files to the staging area, you add them to the list of what will be committed next Committing the staged files adds those files (and their contents) to the Git Repo
We’ll be using GitHub as a remote repository for our project. Go to this URL to sign up for an account.
Generate a local SSH key for use with Github. You can use the default file provided, or give your own path to a key file.
Copy and paste the contents of ~/.ssh/your-key.pub into the Key box
The bottom commit loop happens frequently. Pushing the the remote happens “occasionally”
You commit a change and push to your public repo Bob can then “pull” your change to his repo
Bob commits a change and pushes to your public repo You can then “pull” his change to your local repo