Show output of git commands in activity manager With Fork, you can now lock and unlock files from LFS menu in file context menu, avoiding potential binary merge conflicts in LFS files. Git LFS locking is a feature that lets developers lock files on the server, preventing their concurrent modification by multiple users of the same repository. Ability to create pull requests for GitHub, Bitbucket, GitLab, Azure DevOpsĬreate a pull request on GitHub, Bitbucket, GitLab or Azure Devops through the branch context menu. ![]() Use the mouse to drag a branch on the sidebar into another branch, and choose whether to merge or rebase from the resulting popover. Merge and rebase branches using drag & drop on sidebarįork now allows for a more intuitive way to merge and rebase branches – drag & drop. Until now, you had to stash all changed files – but now the option to stash individual files is available in file context menu. When there’s fairly large WIP going on in your working directory, you might want to stash it to work on something else if needed. Partial stash (available in file context menu) Today, we’ll take a quick look at the most important changes that recently made it to the Windows version of Fork. There’s been quite a few new features and improvements in Fork for Windows since our last blog post. It’s also easy to pick out what other pull requests were merged while the feature was still in progress.ĭownload Fork right now and share your feedback with us! Download Fork for Mac Download Fork for Windows We can clearly see when the work on feature #20782 had begun, which commits it contained, and when it was merged into the main branch. Here’s how it looks when applied to the Swift repo. Collapse all branches using the context menu of the graph and expand the ones you’d like to keep. With Fork, you can collapse all merge commits and only display those you need right now. It is one of the largest GitHub repositories to date, with more than 100,000 commits and 32000 closed pull requests.Ĭould you tell which commits make up pull request #20782 from this screenshot? This allows you to hide unnecessary commits, make sense of a messy contribution graph, and to only concentrate on the changes made in a certain branch.Ĭonsider a real-life example: the Swift language source repository. git branch -set-upstream-to origin/master master Step 9 - Push to my forkĪnd now I can push to my forked repo and create a PR.Recent Fork updates have added the ability to expand and collapse merge commits in the commit graph by clicking on their tips or using ←/ → keyboard shortcuts. Or if it's an older repo with master instead of main as the default branch. git branch -set-upstream-to origin/main main Set the upstream of my main branch to point to my fork. Or via HTTPS: git remote add origin remote add using https Step 7 - Fetch from my new origin git fetch origin Step 8 - Set origin main (or master) Now I can just point origin at my newly forked repo via SSH: git remote add origin :adam7/winget-pkgs remote add using ssh ![]() ![]() ![]() git remote rename origin upstream Step 6 - Make my fork the origin I'm going to want my fork to be origin so I can push there so let's rename the current origin. So off to GitHub and hit the Fork button which gives me a forked repo at Step 5 - Rename my origin repo to upstream Step 3 - Realise I should have forked firstĪt this point I remember I have no permissions on this repo, and I should have started from a fork □♂️ Step 4 - Fork I updated the version of QuickLook and was ready to push and create a PR when. Most recently I thought I'd have a look at how to contribute to the new winget package manager. At that point I always wish I could remember the steps to switch to a fork, so for the benefit of my future self this time I wrote down the steps. I often clone a repo on GitHub or GitLab make some changes to it locally and then think I'd like to contribute my changes back to the repo.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |