codeitmitesh / Task-1

Task of iNeuron regarding git hub commands
MIT License
1 stars 0 forks source link

Task-1

Task of iNeuron regarding git hub

  1. git --version : We will get to know about the version of the git.

  2. git init : It is use for initialization purpose.

  3. git config user.name : For configuration purpose.

  4. git config user.email : For configuration purpose.

Pic 1

  1. git status: It displays the status of tracked or untracked files along with the current branch status.

Pic 2

  1. git commit -m "This is my first commit" : used for commiting the code. Pic 3

  2. git branch : it will show the status of current branch

  3. git branch -M main : To transform from master to main, this command is used

pic 4

  1. git remote add origin "github url" : To add and connect github account

  2. git remote -v : With the help of this we get to know about push and pull destination

pic 5

  1. git push -u origin main: or git push origin main:

This command is use for pushing the file to the main branch

pic 6

  1. git branch developer1 : with the help of this command a new branch name "developer1" will get created

  2. git checkout developer1 : to swith from main branch to developer1 branch this command is used

pic 7

  1. git merge developer1 : to merge contents of two branches

pic 8

  1. git branch -d developer1 : to delete developer1 branch

pic 9

  1. git add . : will add all files to github