Learn about Git remotes. Github repositories are capable of having different remotes(URL pointers), usually one pointing to the original repository and one pointing to the forked repository. Changes on the original repository are pulled(git pull) to make the local code base up to date. When the local codebase is up to date, additional code can be added to it, then a push is made to the forked repository to make it up to date or ready for pull requests. That said a typical Git/Github project involves the Original repository(origin), the forked repository(free to call it what you want), and a local copy.
-
Add Multiple remotes to your project
-
One remote should be called origin(The Original Repository), that is https://github.com/fbdevcowerri/git-14days-challenge
-
The Other remote should be called , i.e prondubuisi, in my case that is https://github.com/prondubuisi/git-14days-challenge
-
Pull from remote origin to keep local repo up to date
-
Push to forked repo to keep forked repo up to date
-
Add Screenshots to show command execution
Extra - feel free to send in a Pull request if you see a typo, spelling error anywhere in this codebase
-
Create a file called <yourname-day2.md> in the day2challenge folder, for screenshots
-
To see all your current remotes
-
Run
git remote -von terminal or CMD -
Add Screenshot to show output
-
Add a new remote with format
git remote add <github-name> <your-forked-repo-url> -
In my case I will Run
git remote add prondubuisi https://github.com/prondubuisi/git-14days-challenge -
Run
git remote -von terminal or CMD to see new remotes -
Add screenshot to show output
-
To pull changes from Original repository
-
run
git pull origin master -
To push changes to forked repository
-
run
git push <git-username> master -
In my case I will run
git push prondubuisi master -
add Screenshot to show command output
-
Add all screenshots to file created and make a pull request
-
Make a Post in the Facebook group telling us about your Progress and what you have learnt
- Google is your friend, check out Google
- Watch this Video by the Facebook Open Source Team https://youtu.be/c6b6B9oN4Vg
- See my Solution here day2solution, notice that I uploaded my images on github here https://github.com/fbdevc
owerri/git-14days-challenge/issues/5
- Create an issue on github and tell us what challenges you are having, someone would be kind enough to help you out
- Tell us about the challenges you are facing in the facebook group
- Wait for the solution video which comes out by the end of everyday D:, don't do this