5.1 Github Account Creating
1. Open github sign up URL on browser : www.github.com/signup and enter your email to signup 2. Next, it asks password, username and product update confirmation, give
1. Open github sign up URL on browser : www.github.com/signup and enter your email to signup 2. Next, it asks password, username and product update confirmation, give
(i) Git merge : Steps to merge : –> First we have to checkout to a branch where we need child/feature branch files and commits
(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