Page History
...
The following steps describe how to setup git. This setup has to done only once for the machine where you are planing to develop code.
Setting the user name in git:
Code Block language bash theme Emacs git config --global user.name "my name"
Setting the email address in git:
Code Block language bash theme Emacs git config --global user.email "my email"
Confirm that your user name is correct by:
Code Block | ||||
---|---|---|---|---|
| ||||
git config --global user.name |
Confirm that your email is correct by:
Code Block | ||||
---|---|---|---|---|
| ||||
git config --global user.email |
GitHub account
If you do not already have a GitHub account, sign up for a new account on GitHub.
Setup ssh keys for your GitHub account
https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/
Useful Commands
- Check status of the repo
git status
- Show current and available branches in the repository
git branch -a
Show local changes in the code since the last commit
git diff
...
Overview
Content Tools