Git Tutorial: Git Basic Workflow Working with Remote Repo at Github.com

Posted by

How 2 Git Repo can share the Committed Code?

How Central Repo is Placed?

List of Git repo Hosting Providers and Their features

FIRST Developer

Step 1 – Register at github.com

Step 2 – Create one Repo

Step 3 – Generate your GITHUB PAT OR SSH Key

Step 4 – Push your code to Github

$ git push https://github.com/devopsschool-demo-temporary/git-demo.git master
$ git push URL master

Second Developer

Step 1 – Register at github.com

Step 3 – Generate your PAT

Step 4 – Clone the repo of “FIRST Developer”

Step 5 – Add and commit your changes in Git

Step 6 – Push your Code into Github

$ git clone https://github.com/devopsschool-demo-temporary/git-demo.git
$ cd git-demo
$ git log
$ start .
$ vi addfile.txt
$ git add --all
$ git commit -m"ading other person"
$ git status
$ git push origin master

FIRST Developer

Step 1 – Pull the code by Second Developer

$ git remote add origin https://github.com/devopsschool-demo-temporary/git-demo.git
$ git pull origin master
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x