?> How to push/pull/edit eclipse project in github.
Step 1: login to github.com
Step 2: create new repository
Step 3: Open eclipse and go to your project which you want to push to github.
Step 4: Team > Share Project > Git > Create Repository > finish !
Step 5: Right click project > Team > Commit
N.B. Do not add project and Important Files : cos it contains important information about your project that you do not want other user to access.
Step 6: Project > Team > Repository View > Right click on Remote > Create Remote Repo > Origin > Change > Add the New https: link > Enter your github User + Pass > Generate Master Branch > Git Website + Refresh and you will find the files there:
//Before we configured push :
// Now we configure the pull option :
Step 7: Git Repositories > Remote > Configure pull(fetch) > Add > Master Branch > Next > Finish > Save and Fetch : ok
//Now Configuring the Master Branch :
Step 8: Branch > Local > Master Branch > Right Click Configure the Branch > Upstream Branch : Master and Remote : Origin >
// Now our editing section :
Step 9: Make Change : > Commit > Right click > Push to Upstream
and your Changes will be seen !
//If you want to show the difference between the new commits made and original code before.
Step 10: Windows > Preferences > Quick Diff > Show Differences in overview ruler > Choose color > Apply > Ok
/.. Now you can see the commit differently !
...And once you hit commit it will go !
LoL !
Done !
Comments
Post a Comment