4.3 Git checkout branch
(i) Default branch is master on git: Observations: Creating files in master branch touch Master-file-1 git add Master-file-1 git commit -m “m1” touch Master-file-2 git
(i) Default branch is master on git: Observations: Creating files in master branch touch Master-file-1 git add Master-file-1 git commit -m “m1” touch Master-file-2 git
1 Creating new branch git branch <branch-name> Ex: git branch feature-1 2 Creating new branch 2 git branch <branch-name> Ex: git branch feature-2 3 Creating
1 Creating new branch git branch <branch-name> Ex: git branch feature-1 2 Rename branch git branch -m <new-name> Ex: git branch -m “feature-one” 3 Move
Git head : git log –oneline Git log : To See/view all commits with full info git log To see/view list of commits with one
Git Local Repository ( git commit) : Single line commit Git commit -m “commit name” Commit with large information(editor opens) git commit or git commit
To add one file at a time to staging area Git add <file name> To add multiple files and folders to staging area git add
Example/Demo : (i) First image box : (ii) Second image box : (iii) Third image box : *** So Git bare repository acts as remote
1. Create your project and open that directory , right click and select git bash here 2. Initializing the git git init 3. Check your
S.No Key Centralised Version Control Distributed Version Control 1 Working In CVS, a client needs to get a local copy of the source from the