The journey of the coder (2)

raserrano(63)
Published in
#busy
Words
282
Reading
2 min
Listen
Play
7y

Using a git storing service

Its not my intention to favor any service over the other but for this education project I will probably start by pushing my changes into GitHub. For now this should be an easy way to show how to handle a remote repository. I will later add another option so we could possibly host the same code in 2 different services just for the sake of testing and curiosity. In my work life I have had the opportunity to switch from one service to another and so I would like to share this knowledge with you all.

Selection_002.png
Simply add the remote reference once you have managed to get the repository reference in a service.

Selection_003.png
Pushing will just send everything that you have and start tracking. I like to point out that this first push will fail (same is you start by creating a local branch) because there is not a reference for that branch in the remote repository, so by setting it to set the upstream and if you use the matching option in the git config you should be able to create a remote branch that follows your changes in the local branch and viceversa. Simply, let the sync happen easier.

Selection_004.png

The final result and command output should be something very similar as the image above, ideally you were able to push your changes using your credentials and also you managed to see the changes in the git hosting service.


In case you miss the first post of this series:

Journal of posts and articles


raserrano@raserrano - Developer

kedjom-keku.jpg
kedjom-keku@kedjom-kekuConservation Association
KK-icon-plant-tree-Green-outline.png
treeplanter@treeplanterFund-raising upvoting bot
FFF-logo-bw.png
forestfriendly@forestfriendlyWater Saving bees

pal-sig-anim-trans

The journey of the coder (2) | Ecency