Skip to content

Git Basics – Setup, Init, Stage & Commit

Git Basics – Setup, Init, Stage & Commit

Initializing repositories and working with Git staging area:

gitcommends

Git basic

Using Git Ignore to not Track a File

For example you don’t want to track README file in the source code:

				
					# git init
# vim .gitignore : README
# git add *
# git commit -m “All Except README”
# git status
On branch master
Untracked files:
  (use "git add <file>..." to include in what will be committed)
        .gitignore
nothing added to commit but untracked files present (use "git add" to track)

				
			

Leave a Reply

Your email address will not be published. Required fields are marked *