Skip to content

Instantly share code, notes, and snippets.

@supaket
Created May 17, 2015 04:05
Show Gist options
  • Save supaket/9d38c1245e86440b934b to your computer and use it in GitHub Desktop.
Save supaket/9d38c1245e86440b934b to your computer and use it in GitHub Desktop.
setup git and it is ready for work.
git config --global user.name "Your Name"
git config --global user.email “your_email@whatever.com"
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
@supaket
Copy link
Author

supaket commented May 17, 2015

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"

@supaket
Copy link
Author

supaket commented May 17, 2015

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