Reputation: 35
I just downloaded GitHub's Atom Editor on my Windows machine and now trying to Integrate my Atom editor with the git enterprise repo say, for example:
https://git.company.com/abc.git
so that I can clone, make changes and check in.
How do I go about accomplishing this?
Upvotes: 3
Views: 7983
Reputation: 6378
For the purposes of this answer I shall assume that you have got a git repository available to you and have installed both the git-plus
and the git-clone
packages in Atom.
Learning Objective: Configure Atom Editor and the Git Clone package to clone your git repositories in a sensible location.
Packages
on the left hand side the find git-clone
.Settings
button for the git-clone
package this will open up the settings page.Target Directory
to something sensible for your operating system and setup. I would strongly recommend that this is a fast local drive such as a SSD.Learning Objective: Get a copy of the code from a central repository onto your development machine using Atom Editor ant the Git Clone package.
First identify the appropriate git URL, I will be using a GitHub URL but this could be any git URL.
[email protected]:RichardSlater/activate-power-mode.git
From Atom press Ctrl-Shift-P to open up the Command Palette then type: Git Clone
to select Git Clone: Clone.
Once you have completed the above three steps you will have a clone of the git repository and a new Atom window opened.
Learning Objective: See how to use Atom Editor and the Git Plus package to make some changes to your code and push these back up to the central repository.
lib/activate-power-mode.coffee
.We're going to change the throttle limit on Line 32
from 25
to 50
- go ahead and make this change:
@throttledSpawnParticles = throttle @spawnParticles.bind(this), 50, trailing: false
Save this file, note that the color of the file in the TreeView has changed to Orange and the status bar will have a git status message on the right hand side:
+ 1, -1
Now we need to add this file, open the Command Palette again by pressing Ctrl-Shift-P then typing git add
, press enter to stage the current file.
git commit
, a new buffer will open where you can type a commit message. Go ahead and type a commit message.git push
.You should now have made a change to your central git repository all from the Atom Editor.
Upvotes: 5
Reputation: 6378
Although Atom is actively developed by GitHub it isn't strongly coupled to github.com or projects hosted with GitHub. I strongly recommend using the git-plus
package which extends the built in git support significantly allowing among other things:
As far as I am aware the only thing you can't do with Git Plus is clone a new repository, however clone is supported through the git-clone
package:
While this screenshot shows the GitHub web interface, you can in fact use any git repository URI.
Upvotes: 1