Skip to content

fabiofreireny/gitTips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 

Repository files navigation

gitTips

Tips and Tricks for using git

To create new repository on github and upload your files to it

  • create repository on github, create readme.md

Locally:

  • Go to the parent folder
  • git clone
  • Go to the newly created git local repository
  • copy file(s) that you want to upload to the git local repository
  • git add *
  • git commit
  • git push

Refresh github, the file(s) should be there

To discard local changes and pull latest from remote repository

  • git checkout <file(s)>
  • git pull

Branches

  • git checkout -b [branchName] # create branch
  • git push --set-upstream origin [branchname] #publish branch
  • git checkout [branchName] # switch to branch
  • git branch # list branches (and where you are)

About

Tips and Tricks for using git

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published