This Repo is for Git Demo
git initTo start a new git repogit branchTo check the current branchgit add .To add all modified files to Stagegit add <file name>To add a specific file to Stagegit statusTo check the changes on the branch and to check the staged filesgit commit -m "<Your comment for Commit>"To commit changes to local repogit branch <branch name>To create a new branchgit checkout <branch name>To select a particular branchgit checkout masterTo checkout master branchgit merge <branch name>To merge branch to master branchgit remote add origin <repository url>To add a remote github repo account to publish changesgit push -u origin masterTo push the changes to remote Git repogit pull origin <branch name>To pull the branch from remote branch to local repo
We have sometimes encountered a situation where the git push -u origin master or the git push command to remote repository is stuck for very long.
To resolve the issue:
- Try debugging the using the below command
GIT_TRACE=1 git push -v origin master
