This GitHub repo is a resource for Software Engineering students to get started with Revision Control Software, specifically, Git. It also covers some GitHub concepts.
-
Git overview video: First, watch this to get a quick overview of Git.
-
Try Git: Now, try this online Git simulation + tutorial to learn Git basics hands-on.
-
Install SourceTree on your Computer.
SourceTree comes with Git and a GUI for Git.
-
Follow this tutorial to try git commands for real.
Tip: This is how you open a Git command line window from SourceTree
-
Now you should be ready to start using Git. Here are two more resources to keep in mind:
- The Pro Git Book: An online version of probably the
most popular book on Git.
Use it as a reference when you want to learn a Git feature in more detail. - Use web search to find how to perform a Git task.
e.g. How to undo a Git commit
- The Pro Git Book: An online version of probably the
most popular book on Git.
- Learn some Git basics by following the Git learning resources given above.
- Create a local repo with some dummy content.
- Do some Git stuff on your repo. e.g.
- Edit some files in the repo,
stage
the changes, and acommit
. - Add a new file, stage it, and commit.
- Edit some files in the repo,
Prerequisite: [LO-GitLocal]
- Complete the GitHub HelloWorld tutorial.
- Use SourceTree to clone the HelloWorld repo you created in the previous step.
- Clone the same remote repo to another location of your computer
(let's call the two clones
clone1
andclone2
). - Do some commits in the
clone1
. push
the new commits to your remote repo on GitHub.pull
the new commits to yourclone2
.
-
Fork this repo to your GitHub account.
-
Clone the fork onto your Computer.
-
Add a text file
{YourName}.txt
to theusers
folder e.g.users/JayYong.txt
. Add some content to the file. Commit the changes. Suggested commit messageAdd {YourName}.txt
It's common practice to write commit message in imperative mood.
e.g.Add abc.txt
rather thanAdded abc.txt
orAdding abc.txt
. -
Push the commit to your fork.
-
Create a PR from your fork to this repo. The PR name should be
Add YourFileName
e.g.Add JayYong.txt
. -
When the PR is ready, add a comment with the text
Ready for review
.
-
Submit an issue in this repo's issue tracker. Issue name
Add {YourFullName-Intro.md}
e.g.Add JayYong-Intro.md
-
Create a branch in your local clone of this repo with the name
add-{YourFullName-Intro-md}
e.g.add-JayYong-Intro-md
-
Switch to the new branch.
-
Create a new file named
users/YourFullName-Intro.md
(e.g.users/JayYong-Intro.md
) in your local repo.
Add some info about yourself to the file and commit the changes in the new branch.When adding content to your file, you can use plain text or GitHub Flavored Markdown format in your file.
-
Push the branch to your fork.
-
Go to your fork on GitHub and create a PR for your new branch against the master branch of this repo.
-
When the PR is ready, add a comment with the text
Ready for review
.
- Damith C. Rajapakse : Project Advisor
- Bug reports, Suggestions : Post in our issue tracker if you noticed bugs or have suggestions on how to improve.
- Contributing : We welcome pull requests. Follow the process described here