Preface
This could be a guidance, for git beginner, as well.
Table of Content
-
Preface: Table of Content
-
6: Enable SSH
An article Rewritten
I have been working with git, for this my personal blog, for use with a single computer. Now, I have moved on from working with standalone single computer, to works anywhere, anytime.
I did once upon a time, wrote an article covering git for single computer.
Now, let’s forget about it, and write a whole new article from scratch. There are just a few steps, for git beginner, Each with figure:
-
Create Repository: Create a github repository.
-
First Computer: Push your first commit, with first computer.
-
Refresh Browser: Refresh browser, to see if you are succeed.
-
Second Computer: Pull your newly repo, with second computer, and make a change.
-
Back to First Computer: Pull altered repo, with first computer.
This is about moving from single.
Single Life (Edisi Jomblo)
1: Create Repository
Push your first commit, with first computer.
You have to do it manually.
Create a github account.
And then create a repository,
let’s name it anycode
.
You should see the result as below:
One small step for man, one giant leap for mankind.
2: First Computer
Push your first commit, with first computer.
Just follow this step, common guidance from github itself.
Create a directory with any name,
let’s say anycode
as our working directory.
Consider create a file README.md
with content anything in your mind.
While we see the word origin
,
as a named remote repository, scattered in most tutorial.
Actually you can name it anything you want,
such as cinta
.
Cinta is the word Love in Indonesia
It means we push to the remote named cinta
,
specifically to master
branch.
Shout it loud!
3: Refresh Browser
Refresh browser, to see if you are succeed.
Consider check the result in github (on the internet cloud). You should see the result as below:
4: Second Computer
Pull your newly repo, with second computer, and make a change.
Now move to other computer.
Or for testing, just use other directory.
Create a directory with any name,
let’s say mycode
as our newly working directory.
All you have to do is pull.
again we do not need to use the word origin
.
You can name it anything you want,
such as rindu
.
Rindu is Indonesian word for Missing You
Consider make some changes.
Commit it with description such as beli bunga
.
And push to the github (on the internet cloud).
Beli bunga, means buy flower
You should also see changes in your browser.
Shout it loud. Again!
5: Back to First Computer
Pull altered repo, with first computer.
Now consider, going back to the first computer,
the anycode
directory,
to see if we can get the latest changes,
from the github (on the internet cloud).
All you need is to pull.
Local repository in your first computer has been updated.
6: Enable SSH
To enable SSH. Use this URL guidance:
And do not forget to change the origin,
from https
protocol to git
.
Conclusion
This is not about single computer, this is about single life.
I wish I could say loud
That’s all.
Thank you for reading