Now let's enter the second phase, where we would like to resume our work from a remote machine.
There are only three stages involved here.
Clone the repository from the server.
git clone https://[email protected]/raviepic3/online_workbench.git /path/where/you/would/like/the/clone_to_be
Make your changes to the files needed.
Add/stage the modifications made in files, commit, and push.
git add * git commit –m 'Your commit message' git pull git push
We just practiced a working solution for maximizing productivity by effectively handling situations as described in Scenario 1.
Git add *
stages/adds all your changes, which is confirmed and recorded by the git commit
command. Git pull
is used to check whether there are unsynced updates in the server; if present, they are synced appropriately followed by git push
, which updates...