How to Use Git


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

mkdir "D:\NETCORE"
git init
git add *.*
git commit -m "add initial files"
git remote add origin
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) the current repository.
git fetch --all
git reset --hard origin/master
git clean -fd
git pull
  • Force updating (fetch and overwrite) a local repository (e.g. C:\Users\admin\Downloads\code).
git -C C:\Users\admin\Downloads\code fetch --all
git -C C:\Users\admin\Downloads\code reset --hard origin/master
git -C C:\Users\admin\Downloads\code clean -fd
git -C C:\Users\admin\Downloads\code pull
  • Pull (checkout) a remote repository (e.g. to an empty local folder (e.g. C:\Users\admin\Downloads\code).
cd C:\Users\admin\Downloads\code
git init
git remote add origin -f
git pull origin master
git pull origin main
  • Reset (Revert) a local repository to a previous version.
cd C:\Users\admin\Downloads\code
git log --oneline
git reset --hard 4355842
where 4355842 is a version id.

How to Hide Your IP Location using VPN in Windows 10


You have VPN credentials and want to hide your IP location for a specific purpose.


  • Setup a VPN connection using your VPN credentials.
  • Type and click View network connections in Search box to open the Network Connections window.
  • Right-click the VPN connection and select Properties in the menu.
  • Select the Networking tab.
  • Click the Internet Protocol Version 4 (TCP/IPv4) row, then click the Properties button.
  • Click the Advanced… button.
  • Select Use default gateway on remote network option.