- Fork makersquare/mks-48-sprints:
This will create a copy of this repo on your remote Github account. You will use it to push up the work you do on each sprint. The code for each sprint should go on a separate branch.
Your branches will look something like this at the end of the first six weeks:
- Download the exercise code from the Learn App
- Extract the directory
cd
into the folder via the command line- Run the following commands:
$ ./init
$ git remote add YOUR_NAME https://github.com/YOUR_GITHUB_USERNAME_HERE/mks-48-sprints
$ git remote add YOUR_PARTNER'S_NAME https://github.com/YOUR_PARTNER'S_GITHUB_USERNAME_HERE/mks-48-sprints
Do this every time you get something working or complete a feature / section of code:
$ git status
$ git add FILENAME # (For new files)
$ git add -p # (For files that git is already tracking)
$ git commit -m "short and concise description of changes"
$ git push YOUR_REMOTE_NAME head
$ git push YOUR_PARTNERS_REMOTE_NAME head # head points to your current branch
$ git status
- git init - Initializes a new local Git repository inside your current directory
- git status - Confirms if there are any staged changes. Staged changes are local changes you've made to files that have not been committed.
- git add -p - Adds changes you've made, one chunk at a time. Usage:
- Type
y
to add the change - Type
n
to skip the change (it'll still be there) - Type
s
to break a big chunk into smaller chunks - Type
q
to quit
- Type
- git commit - records changes to your repository
- git remote - a url pointer to a remote repo on Github that you are connecting to your local Git repository. This will allow you to push changes you make locally to your remote, or pull down changes you've saved to your remote repo, locally.
- git push - updates branch on remote repo with changes made locally