Difference between revisions of "Git reference"
From thelinuxwiki
				
								
				
				
																
				
				
								
				| Line 16: | Line 16: | ||
  git commit -a -m "This is my commit message!"  |   git commit -a -m "This is my commit message!"  | ||
| + | list files to be added by a commit  | ||
| + |  git status  | ||
| + | |||
| + | list commit history for current branch  | ||
| + |  git log  | ||
| + | |||
| + |  git branch   | ||
| + | |||
| + |  git checkout  | ||
== links ==  | == links ==  | ||
Revision as of 02:17, 13 June 2017
git - distributed revision control system
create repositories by creating a directory for each project. Once you are in the directory,
# git init
Adding Files to the Repository
git add *
or
git add filename.txt
Committing Files The Git add command is normally followed immediately by the Git commit command.
committing creates a snapshot
git commit -a -m "This is my commit message!"
list files to be added by a commit
git status
list commit history for current branch
git log
git branch
git checkout