Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

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

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
Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x