Great news for my developer friends; Git and GitHub integration have been just shipped with the new Atom release. The new feature was available as a beta for a while but now with Atom 1.18, it’s ready for use to the general public as well. From now on, you can perform common Git and GitHub operations without leaving the code editor.
A Look Into Atom: Github’s New Code Editor
.no-js #ref-block-post-19566 .ref-block__thumbnail { background-image: url("http://media02.hongkiat.com/thumbs/250x160/atom-code-editor.jpg"); }
A Look Into Atom: Github’s New Code EditorGithub, a popular git repository that hosts a ton of open source projects, has recently announced a new…Read more As Atom started as GitHub’s internal tool, the step of integrating Git and GitHub is not super-surprising, however it will further improve Atom’s development workflow for sure. With the new release, Atom also strengthens its position in the code editor scene, as Visual Studio Code has already offered the same feature for a while. Initialize a Git repositoryAtom got two new tabs, one for Git and another for GitHub, through which you can handle your Git operations. You can access them either by clicking the (If your top menu bar is hidden you can reveal it by pressing the Alt key.) You can also use the following keyboard shortcuts to access the tabs:
Click the And that’s all, your Git repository has been initialized without having to touch the command line. This is how the starter screen of an empty Git repo looks like: As you can see, the layout is as convenient as it can be. You can see the staged and unstaged changes under each other, and make a commit at any time. Plus, you can switch the Git tab on and off by simply hitting the little > icon. Although the “Project” pane on the left-hand side doesn’t show it, the repo, as it should, contains the hidden Stage changesI quickly created two test files, Atom puts both files into the “Unstaged Changes” section in the Git pane on the right. And, in the “Project” pane on the left, the names of the unstaged files appear in green. There are three ways you can stage the changes:
Stage an individual file or selectionIf you want to stage only one file then just click on the file name in the “Unstaged Changes” section. A new tab will open up in the editor pane where you can choose if you want to stage the whole file ( Stage all unstaged filesIf you want to stage all unstaged files at once just click the The staged files are moved to the “Staged Changes” section. And, if you change your mind you can unstage them by clicking the Commit changesThe “Stage Changes” section is basically your staging area. When you reach a milestone in development you need to commit the changes. By committing, you save the momentary state of the project into the Git version control system so that you can return to it (if you want) without losing anything. To commit your staging area, type a commit message (that shortly describes the changes you made since the last commit) into the As a result, both the “Unstaged Changes” and “Staged Changes” section will be cleared and the color of file names in the “Project” pane will be changed back to white. Other Git operationsThere are a bunch of other Git operations you can also perform right from the Atom editor. For instance, you can create a new branch by clicking on the branch name at the bottom of the Git tab. Here, you can also switch between the different branches. However, not all Git operations are available from Atom yet. For instance, you can’t delete branches, or make configurations. To perform these tasks, you still have to use the command line. Atom’s Git integration is still very new, so hopefully, support will be added to these less frequently used operations in the future. You can access a list of all Git-related features via the Command Palette by using the Ctrl + Shift + P key binding and typing “Git” into it. Clone a GitHub repositoryAtom’s new Git integration feature doesn’t only work locally but you can clone a GitHub repository as well. To do so, open the Command Palette by hitting Ctrl + Shift + P and select the Authorize GitHub for AtomTo make changes in a GitHub project, you need to authorize GitHub for Atom. Follow the instructions you see inside Atom’s GitHub tab. First, visit the Enter the authorization token into the input field you can see in Atom’s GitHub tab and log in to your account. From here, you can access the three most common GitHub operations: fetch, push, and pull requests by clicking the down arrow icon at the bottom of the GitHub tab.
How to Add Custom Code Snippets to Atom
.no-js #ref-block-post-28067 .ref-block__thumbnail { background-image: url("http://media02.hongkiat.com/thumbs/250x160/add-custom-code-snippets-atom.jpg"); }
How to Add Custom Code Snippets to AtomIt's not a coincidence that Atom, the source code editor created by Github is popular in the web…Read more from http://www.hongkiat.com/blog/manage-git-github-atom/
0 Comments
Leave a Reply. |