Basic user cases from git, Github repo, to Github page

Photo by Roman Synkevych on Unsplash
Pic 1
Pic 3
Pic 4
echo "# git_test_1" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/XueWang2019/git_test_1.git
git push -u origin main
git init
git add .
git commit -m "first commit"
git remote add pb https://github.com/XueWang2019/git_test_1.git
git push -u pb master
Pic 5
Pic 6
git add README.md
git commit -m "add README"
git push pb master
Pic 7
Pic 8
Pic 9
Pic 10
Pic 11
Pic 12
Pic 13
Pic 14
git init
git add .
git commit -m "first commit"
git remote add pb https://github.com/XueWang2019/git_test_1.git
git push -u pb master
git add README.md
git commit -m "add README"
git push pb master
git add "file1.txt"
git add "file2.txt"
git commit -m "add file1 and 2"

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store