Skip to content

miguelgranja/git-ghub-notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 

Repository files navigation

A github repository dedicated to my git/github notes

Authenticate yourself:

  • git config --global user.email "you@example.com"
  • git config --global user.name "Your Name"

Create a local repo:

  • git init

Create a .gitignore file:

  • touch .gitignore

Delete a local repo:

  • rmdir .git -force

Add stuff to the commit you're gonna make:

  • git add . || somefile.extention

Commit changes:

  • git commit -m "Comment"

Branch Commands:

  • git branch -M main [create a branch]
  • git branch -r [find existing remote branches]
  • git branch -l [find existing local branches]

Add repository to github:

Push changes to github branch:

  • git push -u origin main

AsciiDoc Cheat sheet for github

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published