Linux
- Debian:
sudo apt-get install git
Mac OS
- .dmg installer
- Brew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install git
Windows
To learn the basics of version control by editing a single file simultaneously with many others!
Complete the following Katacoda Scenarios :
- Committing Files
- Committing Changes
- Working Remotely
- Undoing Changes
- Fixing Merge Conflicts
- Experiments Using Branches
Clone a copy of this repository and some add information about yourself to Participants.md, and include a secret!
For your bio information, include your academic year, focus of study, and home town/city.
Hide your secret using the powers of version control!
Explore this repositories commit history to look at your changes and learn about your fellow DSC members!
Create a branch
git branch <name of branch>
Checkout a branch
git checkout <name of branch>
Create and checkout a branch
git checkout -b <name of branch>
Pull changes from remote branch into local branch
git pull
Stage a file
git add <name of file>
Commit a file
git commit -m "a commit message"
Push a file to a new remote branch
git push --set-upstream origin <name of branch>
Push a file to an existing remote branch
git push
Revert a commit
git revert <commit hash>
Save your username and password in git (Warning! This involves a potential security risk!)
git config credential.helper store