This repository essentially includes the simple steps to connect Atom and GitHub in proper order. Please suggest edits shall there be any.
[1]
Create a GitHub account and log-in.
Go to https://github.atom.io/login/. Re-enter password.
Grant the access permission for atom.
Copy the token.
Open Atom. From the bottom right corner, click ‘GitHub’. Enter the copied token, there.
Create a local folder for the project.
git config --global user.email "type_your_email_here"
git config --global user.name "type_your_name_here"
(This way, it recognizes that it’s you.)
Create a repository on Github.com.
In atom, press Ctrl + Shift + P. Search for Git Clone and open it.
Open the repository you created from github.com. Copy its HTTPS url, and paste it in the GitClone pop-up in Atom. Do not close the tab on web browser, yet.
Copy the path of local folder that you created in step 4, and paste it in the GitClone pop-up in Atom.
In the bottom right corner of Atom, click ‘Fetch’.
Open web browser and switch to the repository tab (or basically open github.com).
After a few seconds, you will see a pop-up asking to login. Login there.
(Do not choose the option for pasting token, because you would have to open “github.atom.io/login/” again, and as soon as you click anywhere else on the screen, the log-in pop-up would vanish.)
In case you have already created all the files for your project locally, proceed the same way until step 8.
After performing step 8, upload all the files from your original local project folder to the remote repository on GitHub, manually (i.e. in the way you would usually upload any file online.)
Now, proceed to step 9.
In atom, press Ctrl + Shift + P. Search for ‘Github Logout’ and click it.
Open github account on your browser. Click the profile picture on top right corner > Settings > Applications. Now find Atom, and revoke access.
While ‘commiting’ files from the staged area, make sure the ‘message’ box isn’t empty.
To delete a local or remote git branch, refer this link[2]. Avoid creating unwanted branches.
To unlink a local directory from github, delete the .git folder.[3]
Open GitBash in your project folder and use this command:[4]
git rm -rf .git
There is no need to unlink an unwanted local directory from GitHub, simply delete the local folder.[5]
[6]
echo "# repository-name" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/username/repository-name.git
git push -u origin main
git remote add origin https://github.com/username/repository-name.git
git branch -M main
git push -u origin main
https://1varunvc.github.io/How-to-connect-Atom-and-Github/
[1] https://youtu.be/6HsZMl-qV5k
[2] https://linuxize.com/post/how-to-delete-local-and-remote-git-branch/
[3] https://discuss.atom.io/t/delete-root-directory-and-unlink-directory-to-github-repository/44355
[4] https://teamtreehouse.com/community/how-to-remove-git-from-the-current-folder
[5] https://stackoverflow.com/q/5667106/14597561
[6] https://github.com/