Git global setup
git config --global user.name "userxxx"
git config --global user.email "asyyyyy@company.com.au"
git config --global http.sslVerify false
Create a new repository
git clone https://github.com/shafiiub/Analytics.git
cd Analytics
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
Existing folder or Git repository
cd Analytics/
git init
git remote add origin https://github.com.au/Analytics/Analytics.git
git add .
git commit
git push -u origin master
Fixing ssl certificate issue
git config --global http.sslVerify false
Help menu
git help
Create an empty Git repository or reinitialize an existing one
git init
Clone a repository into a new directory
git clone
To set your user name and email in the main configuration file.
git config
To initialise a git repository for a new or existing project.
git init
How to check the status of files you've chnaged in your working directory
git status
How to add changes to stage/index in your working directory
git add
Push or Pull your changes to remote.
git push/git pull
Lists out all the branches.
git branch
Leave a Comment