How to Link and Manage Github Project in Atom

tutorial
github
atom
2020
Author

Aster Hu

Published

June 20, 2020

Atom
Note

On June 8, 2022, Atom is offically shutdown by Github[^1].
R.I.P Atom!

Obviously, we need a Github account and project to get start with.

Setup

If Project Not in Local

Assuming the project is not in local yet, click Github on the right corner and choose Clone an existing Github repository.

There’ll be a popup window.

Clone from: get Git link from Github page and paste here

To directory: it is the folder where you want to the project to be cloned into.

Git

After that, it will ask you to click a link to generate a token for authentication. Get the token and paste it, then you should be able to Login.

Token


If Project already in Local

It’s super easy. Simply go to menu File - Add Project Folder and choose the parent folder which contains .git.

Click Github on the right corner, it will ask for authentication token just as above. Once it’s verified, Atom will recognize it.

How to Push Request from Local to Github

Push Request is a term to describe the changes will be uploaded from local to Github.

After setup, the Git/Github panel will look like below. Any changes we made, the changed files will show under Unstaged Changes on the right.

Unstaged changes

Once we clicked Stage All, all files will move to Staged Changes.

Now put some comments under Commit message and click Commit to Master(or Cmd ⌘ Enter ↵) to confirm. This step is equal to git commit -m "message"

Commit message

The comments and Push request will be updated. Click Push x to push the change to Github. It is equal to git push origin master.

Push changes

How to Pull Request from Github to Local

In contrary to Push Request, Pull Request means the changes will be downloaded from Github to local folder. To do this, click Fetch button on the right corner.

Fetch

If there’s any change available, it will show Pull x. Click it to execute Pull Request.

Pull