Difference between revisions of "GIT First Steps"

From Logic Wiki
Jump to: navigation, search
(Created page with "Category:GIT == First Steps == git config file is : /etc/gitconfig /.gitconfig .git/config ~/.gitignore_global git config -- global user.name "Ali Iybar" git co...")
 
m (1 revision imported)
 
(No difference)

Latest revision as of 14:27, 9 May 2016


First Steps

git config file is : /etc/gitconfig /.gitconfig .git/config

~/.gitignore_global

git config -- global user.name "Ali Iybar"
git config -- global user.email "ali.iybar@gmail.com"
git config -- global core.editor subl
git config -- global merge.tool vimdiff
git config --list

Ignoring Files

create a file named .gitignore

*.[oa]   -> ignore files ending with o or a 
*~    -> ignore temp files

Rules of .gitignore file

  • blank lines or lines starting with # are ignored
  • end with / to specify directory
  •  ! to negate
*.a    -> ignore files ending .a
!lib.a -> but track lib.a

fork

Baskasinin koduna katkida bulunma veya oradan itibaren devralma icin yapilan isleme fork deniyor.


Difference between pull & fetch

pull = fetch + merge