63 questions
0 votes
1 answer
143 views
How to set a custom upstream for a branch during its creation?
I have a workflow in which local branches end up with names that I don't really want to be visible in the remote repository. I would like to set the upstream name when I create the local branch, so I ...
2 votes
2 answers
63 views
A simple command to configure `git pull`
My remote repository has hundreds of branches, so fetch is configured conservatively: % git config --get-all remote.origin.fetch +refs/heads/master:refs/remotes/origin/master refs/heads/release/2.5:...
0 votes
1 answer
708 views
git keeps complaining about non existing master on remote...?
When I try to fo a git pull, I get: Your configuration specifies to merge with the ref 'refs/heads/master' from the remote, but no such ref was fetched. when I'm on master. I have tried: git reset --...
0 votes
0 answers
39 views
How to pull the changes in Branch1 to Branch2 within the same repo?
I am working on a Forked repo (xyz) of an Upstream repo (abc). I created a branch (Branch1) and started working on it. Once Done, I raised a PR which looks like this: Open: amol wants to merge 5 ...
0 votes
0 answers
21 views
Git push is not working after set the upstream remote branch to local branch [duplicate]
I have a two branch called NB1 and NB2, Those branch present in remote repository I have set a upstream as "git branch --set-upstream-to=origin/NB1 NB2" Then switch the branch to NB2, Now I ...
6 votes
1 answer
8k views
Failed to install kernel modules
When attempting to compile my custom Linux kernel, the sudo make modules_install command failed, resulting in the following errors: INSTALL /lib/modules/5.14.0-rc7+/kernel/arch/x86/crypto/blake2s-...
0 votes
0 answers
26 views
Using git to push to github - current branch has no upstream then shh error [duplicate]
I've pushed from git to github on this ssh/set up before. IT HAS WORKED. I created a new repo on github. I set up remote - when I type git remote -v it gives back two lines starting with "origin&...
5 votes
0 answers
2k views
Set upstream branch without using `git push`
After doing git init git remote add origin <some_origin> You can's simply commit and push, since it says fatal: The current branch master has no upstream branch. To push the current branch and ...
0 votes
2 answers
3k views
git branching advanced usage, rebase from upstream branch
Following up on Git: rebase onto development branch from upstream, basically the same ask as: I have local master and develop branches. I do all my work on develop and then merge them into master for ...
1 vote
1 answer
1k views
I am pushing code to the forked repository. But, the PR goes to the upstream. Why?
There is something that I do not understand. 1 - I am working on this repository tallyfor/re-frame-firebase (link). As you see, it is a fork of deg/re-frame-firebase (link). 2 - Now, after doing a git ...
0 votes
0 answers
48 views
Upstream links disappear when fetch refspecs are provided directly in the command line
Consider a common scenario where we have two upstream branches set up for two local branches. This can be verified using git branch --all -vv which provides the following output: * master ...
2 votes
3 answers
5k views
Best way to create new branch copied from old one?
Suppose I want to create a brand-new branch that's an exact copy of an existing one. (If it matters, later I'll explain my particular motivation.) The first time I needed to do this, I did it "...
2 votes
1 answer
2k views
zsh: number expected while using `git push --set-upstream` command
I am getting zsh: number expected whenever I`m running the following command:- Command - git push --set-upstream origin branch_name I`m using Oh My Zsh as my terminal in MacBook Pro with M1 chip. I ...
-1 votes
1 answer
198 views
Github Fetch and Merge problems
I forked github repository month ago. I created branch "test". Yesterday I opened it on GitHub (page) and I clicked "Fetch and Merge" button (on branch "test"), after ...
2 votes
1 answer
4k views
Fetch upstream from another repo and then push the changes in my local branch
I have two projects one is a mirror from another and I have a branch in the no mirror project that I need to move to the mirror project. I'm doing the next: git remote add upstream https://github.com/...