Skip to content

johnsie/Git-Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Git-Learning

Some notes I've taken as I learn about Git

Turn the current folder into a git repo

git init

Get the status of the current folder/repo

git status

Clone a github repo into the current folder without creating a new folder (Current folder must be empty or it will give an error message)

git clone https://github.com/johnsie/SQL-Learning.git ./

If a file has been changed it should show up in 'git status'. Add it to 'staging'

git add filename.exe

Add all the changed files to 'staging'

git add .

Commit the current contents of staging to the repo

git commit -m "message about what you're committing"

Push the committed files to the origin (remote repo eg. Github)

git push origin main (Where main is the name of the branch)

Pull updated filed from the remote repo (eg. Github)

get pull

About

Some notes I've taken as I learn about Git

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published