6.1 Git Add
To add one file at a time Git add <file name> To add multiple files and folders git add <file1> <file2> <folder> To add all
To add one file at a time Git add <file name> To add multiple files and folders git add <file1> <file2> <folder> To add all
Git Local Repo upload to the github : Mostly uses https method, now will see how it’s works: (i) Opens a window, asks to login
1. Git clone and push own old Repository 1. Add changes to cloned repository, Here changed : contact with contactus Vi Editor opens : Press
(i) Open github.com and search for any project (Here I am searching for my own project : explore-world-bootstrap-website) 2. Here we can see the search result,
1. Create your project and open that directory , right click and select git bash here 2. Initializing the git git init 3. Check your
1. Open github, login with your credentials 2. Click on + icon right top corner, next click on New Repository 3. Now in the below,
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