Skip to content

mlwang1/GitHubPractice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 

Repository files navigation

Git Notes

Creating repo

$ touch README.md
$ git init # initialize git repo
$ git add REAME.md
$ git commit -m "first commit"
$ git remote add origin [url]
$ git push -u origin master
# enter username and password

Adding repo with changes

$ git add . # add everything that has changed
$ git add -u # when you have deleted a local file you want to remove from your repo
$ git commit -m "changes"
$ git push
# enter username and password

No more username and password input for every push

$ git remote set-url origin git@github.com:yourUsername/yourReponame.git

more testing

About

Hello

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published