Git: Difference between revisions
m (→GitLab Group) |
|||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
== Git (Version Control Software) == | == Git (Version Control Software) == | ||
Line 4: | Line 5: | ||
* [[What is Git and why Git?]] | * [[What is Git and why Git?]] | ||
* Randy LeVeque's [http://depts.washington.edu/clawpack/g2s3/slides/git-intro.pdf Intro to Git Slides] | * Randy LeVeque's [http://depts.washington.edu/clawpack/g2s3/slides/git-intro.pdf Intro to Git Slides] | ||
* [http://github.com GitHub] | * [http://github.com GitHub] (wealth of open source code repositories managed by Git) | ||
* [http://git-scm.com/downloads Download Git] | * [http://git-scm.com/downloads Download Git] | ||
* [https://git-scm.com/book/en/v2 Pro Git book] | |||
=== Learning Git === | |||
GitHub as a nice set of tools for learning Git, which can be [https://try.github.io found here]. | |||
These include some practical components, general documentation and cheat-sheets. | |||
If you're new to git, this is a great way to get introduced to the ideas. | |||
GitLab has also worked on putting together a [https://docs.gitlab.com/ee/university/ user-friendly introduction to git]. | |||
== GitLab Group == | |||
The Fluids Lab has a group on the [https://git.uwaterloo.ca uWaterloo GitLab server]. | |||
It can [https://git.uwaterloo.ca/AppliedMath_Fluids be found here]. If you don't have access, click the ''request access'' button and someone will approve you. | |||
By sharing repositories with the group, you can make them immediately available to everyone else in the group, making it a very efficient way to share code with other lab members. | |||
This is also a nice way to help make sure that, after you graduate, your code doesn't vanish with you, and future generations can continue to use the tools that you built. | |||
== Useful Snippets == | |||
* <code>git log -p filename > changelog</code> stores the history of changes to file <code>filename</code> into the file <code>changelog</code>. | |||
* <code>git diff file.name > file.diff</code> using the <code>.diff</code> extension tells vim (and, presumably, other text editors) to use appropriate syntax colouring. This is useful for reviewing the changes in a file, particularly when the changes are numerous. |
Latest revision as of 13:55, 23 October 2019
Git (Version Control Software)
- What is Git and why Git?
- Randy LeVeque's Intro to Git Slides
- GitHub (wealth of open source code repositories managed by Git)
- Download Git
- Pro Git book
Learning Git
GitHub as a nice set of tools for learning Git, which can be found here. These include some practical components, general documentation and cheat-sheets. If you're new to git, this is a great way to get introduced to the ideas.
GitLab has also worked on putting together a user-friendly introduction to git.
GitLab Group
The Fluids Lab has a group on the uWaterloo GitLab server. It can be found here. If you don't have access, click the request access button and someone will approve you. By sharing repositories with the group, you can make them immediately available to everyone else in the group, making it a very efficient way to share code with other lab members. This is also a nice way to help make sure that, after you graduate, your code doesn't vanish with you, and future generations can continue to use the tools that you built.
Useful Snippets
git log -p filename > changelog
stores the history of changes to filefilename
into the filechangelog
.git diff file.name > file.diff
using the.diff
extension tells vim (and, presumably, other text editors) to use appropriate syntax colouring. This is useful for reviewing the changes in a file, particularly when the changes are numerous.