GITHUB COMMANDS

Karanwadhwa
Oct 27, 2020
  1. git init
  2. git add .
  3. git commit -m “message”
  4. git add remote origin <github repolink>
  5. git push -u origin <branch name>

BRANCH AND MERGE

1 . git branch(To check which branch you are in )

2. git branch <branch name> (To add new branch )

3.git checkout <branchname> (To Go to that branch)

4.git merge <branch name> (To merge branch in which you are in and branchname which you give )

FORK AND PULL REQUEST

  1. First fork that repo .
  2. Then copy its https link (by click on code option of repo from your profile)
  3. Change as you want and push it to your repo.
  4. Then create pull request .

--

--