#Intro to Git/Github
NYC Pyladies Event Page
#Intro to Git/Github
NYC Pyladies Event Page
Notes from Git Presentation Notes
Set up Git and GitHub
https://help.github.com/articles/set-up-git#platform-mac
What is a git repository?
What is a commit object?
What is a head?
Let's create a Repository
git init or simply git init
Create a file, stage it and commit it
It's “Untracked”
The three commands you'll use over and over
Now let's get set up to share it online
create a repo on github's website (or see pro-tip below)
git remote add origin [email protected]:<githubusername>/<reponame>.git
Pro-tip:
If you have curl installed, you can create a github repo from your command line. Check to see if curl is installed by typing curl --manual. The curl command for creating a github repo is curl -u '<githubusername>' https://api.github.com/user/repos -d '{"name":"<reponame>"}'
Edit the file, stage, commit, push
Branching & Merging
Working with someone else's repo
Git clone [email protected]:<githubusername>/<reponame>.git
Git fetch
Git pull origin master
Git push origin master
Learn More