GitHub User Guide - Team-Juan/user-guides GitHub Wiki
GitHub User Guide
Change URL of cloned repository
-If you clone someone else's GitHub repository and then try to push it to your own repository you will get an error. You first need to set the remote repository back to your own repository as follows:
-git remote -v
-git remote set-url origin https://github.com/youraccountname/yourrepositoryname.git
Now you should be able to see that the remote has changed:
-git remote -v
And push your local repository up to github:
-git push -u origin master
After the above steps you only need to type the following after changing any files in the repository:
-git add .
-git commit -am "message about changes made"
-git push
Headers
H1(#H1)
H2(##H2)
H3(###H3)
H4(####H4)
H5(#####H5)
H6(######H6)
Links
I'm an inline-style link with title
[I'm a reference-style link][Arbitrary case-insensitive reference text] I'm a relative reference to a repository file [You can use numbers for reference-style link definitions][1]
Or leave it empty and use the [link text itself].
URLs and URLs in angle brackets will automatically get turned into links. http://www.example.com or http://www.example.com and sometimes example.com (but not on Github, for example).
Images
Here's our logo (hover to see the title text):
Inline-style:
Reference-style:
D2L git username settings/pair programming guide
When you set up your first git repository on your own computer or dev server we typed (with your name in place of Jane Doe):
git config --global user.name "Jane Doe" git config --global user.email "[email protected]" But this creates a problem if you are doing pair programming or have different users working on your computer. To handle another worker using your computer temporarily set the user name for the repository they are working on as shown below without the --global option.
git config user.name "Bob Smith" git config user.email "[email protected]" And when the original user comes back then set it back to that user:
git config user.name "Jane Doe" git config user.email "[email protected]"
When pair programming do the following:
git config user.name "Jane Doe and Bob Smith"
To see your local settings type:
git config user.name
git config user.email
Additional Places for extra help
https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#headers