How to Use Git

Motivation:

You want to use Git to version your files or share your files with other people.

Solution:
mkdir "D:\NETCORE"
git init
git add *.*
git commit -m "add initial files"
git remote add origin https://github.com/huybien/asp.net-core.git
git push -u origin master
  • Push changes to a remote repository.
git add .
git commit -m "CP form"
git push -u origin master
  • Update (fetch and merge) a local repository.
git pull
  • Force updating (fetch and overwrite) a local repository.
git fetch --all
git reset --hard origin/master
git pull

 

 

 

 

(Visited 5 times, 1 visits today)

Leave a Reply