git-bug | Distributed offline-first bug tracker embedded in git
kandi X-RAY | git-bug Summary
kandi X-RAY | git-bug Summary
Distributed, offline-first bug tracker embedded in git, with bridges
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of git-bug
git-bug Key Features
git-bug Examples and Code Snippets
Community Discussions
Trending Discussions on git-bug
QUESTION
When running git clean -xdf
in a repo with yarn workspaces, the contents of the workspaces are deleted.
Consider this folder structure:
- workspace1
- index.js
- package.json
- workspace2
- index.js
- package.json
- .gitignore
- README.md
- package.json
- yarn.lock
After running git clean -xfd
the files in bold (tracked source controlled files) are deleted! Even though clean shouldn't have impacted tracked files at all.
I believe it is a yarn workspaces bug. I've opened an issue @yarn: https://github.com/yarnpkg/yarn/issues/7536
Has anyone encountered this bug? Does anyone have a workaround or know the root cause for this behavior?
For anyone interested in seeing the bug first hand I've created a repo that causes it to reproduce easily: https://github.com/Shmulik-Kravitz/yarn-with-git-bug
Steps to reproduce are inside.
Output for yarn --verbose
(very long):
https://github.com/Shmulik-Kravitz/yarn-with-git-bug/blob/master/yarn%20log
Output for git clean -xdf
:
ANSWER
Answered 2019-Oct-07 at 15:01If you are on Windows, I bet the most probable reason is the following issue: https://github.com/git-for-windows/git/issues/607 . Git was indeed deleting the content of junction points.
I could reproduce your issue with "git version 2.22.0.windows.1", but no longer see it after upgrading to "git version 2.23.0.windows.1".
QUESTION
I'm using a repository which exists both on github and on an internal gitlab.
I have set up two remotes: origin
(github) and gitlab
.
How can I easily interact with the branch master
of both remotes?
What I've tried:
git checkout --track gitlab/master
-> error:A branch named 'master' already exists.
git checkout -b master-gitlab --track gitlab/master
-> worked, I now have a local branchmaster-gitlab
and the console output tells me:master-gitlab set up to track remote branch master from gitlab.
-> perfect, this is what I want!git push gitlab master-gitlab
-> this creates a new remote branchmaster-gitlab
on remotegitlab
which is not what I want and inconsistent with the output of the last command.- I can now do
git push gitlab master-gitlab:master
which pushesmaster-gitlab
tomaster
of the remotegitlab
. But I always forget how to do this and it's not very intuitive.
Is there an easier way to track the master
branch of a different remote and push to it?
Is this a git-bug that it first (3) is telling me tracking master
and afterwards creating a new branch on push?
ANSWER
Answered 2019-Sep-24 at 13:47It's not a bug in the sense that git is doing what the documentation says it will do. It also may not be the most intuitive result in this case, but with how many different ways there are to relate remote branches to local refs I don't really think there is a behavior that will be intuitive to everyone in every situation.
In general, push configuration is set separately from pull configuration. (You can see the git push
documentation for a rundown of how it tries to figure out what to push where when you don't specify everything on the command line. https://git-scm.com/docs/git-push)
That said, the default push configuration does try to use the pull configuration if you are pushing to the default remote. You can configure push
to always default to upstream configuration with
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install git-bug
Go to the release page and download the appropriate binary for your system.
Copy the binary anywhere in your $PATH
Rename the binary to git-bug (or git-bug.exe on windows)
Scoop scoop install git-bug
Archlinux (AUR)
NixOS
Homebrew brew install git-bug
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page