![]() Just type in git stash and your changes are "stashed" away. Stashed items are found on side navigation. Click button, then a dialog comes up asking to name the stash After naming the stash, all uncommited changes are stashed with name. when you checkout back, you need restore your workplace and delete stash. Expected behavior: Have stash button on app bar. If you ever need to quickly put your current changes away so you can help work on something more important than your current task? Well, git stash is here to the rescue! git stash git checkout development Now you can work at branch development. Desktop will ask if I want to bring or leave my changes (stash). With one click, I can add co-authors to commits while pairing or when I receive a suggestion from a colleague. ![]() Below is a list of commands I've been using quite often, but feel they may not be as well known. I can open terminal, my text editor, the repository on, or the current branch on right from Desktop. From that challenge I set myself, I realized there was way more to Git than these applications may show. Note: I am using Windows 10 PC and GitHub Desktop for interfacing with. This is why I am making this article as a sort of a cheat sheet. That's when I started to only use Git through the command line. The process of adding a pre-existing project to GitHub is slightly different from a typical scenario in which you first create a GitHub repo for a project and only then start working on the project itself. While these applications are great, I still wanted to learn more about the commands these applications are running in the background. ![]() I also used SourceTree on one project I was on. You can only stash one set of changes at a time with GitHub Desktop.If you use GitHub Desktop to stash changes all unsaved changes will be stashed. I first started using Git when GitHub had their GitHub Desktop applications and used that for a while. ![]() However, I didn't get an appreciation for how powerful it was at first. The more I use it the more I enjoyed using it. Definitely a step up from StarTeam, but then I got started using Git. Actually git stash failed with a couldnt update indexes or something error, so I went for broke and did git reset -hard ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |