Created
May 17, 2015 04:05
-
-
Save supaket/9d38c1245e86440b934b to your computer and use it in GitHub Desktop.
setup git and it is ready for work.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --global user.name "Your Name" | |
git config --global user.email “[email protected]" | |
Unix/Mac users: | |
git config --global core.autocrlf input | |
git config --global core.safecrlf true | |
Windows users: | |
git config --global core.autocrlf true | |
git config --global core.safecrlf true |
git log --oneline --abbrev-commit --all --graph --decorate
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FILE: hello.txt
puts "Hello, CHANGE1”
Add this Change
EXECUTE:
git add hello.txt
Second change: Add a comment
FILE: hello.rb
Default is "World"
puts "Hello, CHANGE1”
Check the current status
git status
Committing
git commit -m "Added a default value"
git status
Add the Second Change
git add .
git status
Commit the Second Change
git commit -m "Added a comment"