Skip to content

Instantly share code, notes, and snippets.

@Md-shefat-masum
Created July 7, 2019 10:24
Show Gist options
  • Save Md-shefat-masum/a0727e3265cace30251df10ae9148edc to your computer and use it in GitHub Desktop.
Save Md-shefat-masum/a0727e3265cace30251df10ae9148edc to your computer and use it in GitHub Desktop.
github connection
git config --global user.name 'Md-shefat-masum'
git config --global user.email 'myphoto240@gmail.com'
git add . (this command all all files)
git branch new-branch-name ( add new branch to git hub )
git checkout branch-name ( changing the git branch )
git commit -m 'commit message' ( commit file with a message )
git merge new-mergename ( then click 'i' and write 'Added baranch-name' )
git remote add origin https://github.com/Md-shefat-masum/test-git.git ( add git hub repository to file )
git remote
git push -u origin master
git push -f origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment