gtihub code example
Example 1: what is github
GitHub, Inc. is a United States-based global company that provides hosting
for software development version control using Git. In 2018, it became a
subsidiary of Microsoft for US$7.5 billion.
It offers the distributed version control and source code management
functionality of Git, plus its own features.
Example 2: github
//cancel commits
git reset HEAD^
//cancel last 3 commits
git reset HEAD~3
//when first commit
git push -u origin master
//remove remote origin
git remote remove origin
//reset remote origin
git remote add origin https://github.com/yourname/project.git
git init
//add all
git add .
//cancel adds
git reset
Example 3: github
echo "# practice" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/shlee87/practice.git
git push -u origin master
Example 4: github
adding git remote origin
Example 5: github
git config --global user.email "[email protected]"