1,734 questions
1
vote
0
answers
625
views
Gitlab Issue: You can only push commits if the committer email is one of your own verified emails?
So I have the following repo setup in Gitlab:
Template Repo A
Project Repo B, based on Template Repo A
Project Repo C, also based on Template Repo A
Whenever some of the core files (of the Template ...
-1
votes
2
answers
156
views
Unable to create a new repository remotely [duplicate]
I am creating several new repositories and I want to automate it for a future product I am building. Got stuck on the first step. The following command works (at least there is no error message):
git ...
-2
votes
2
answers
187
views
How can I immediately update the code in a remote repository on gitlab.com without a "merge request"?
I have set up a pet project in a remote repository on gitlab.com and I have the local repo in a folder on MacOS. My SSH key on gitlab.com is setup OK and communications work alright.
I edit/test/debug ...
1
vote
0
answers
146
views
Unable to Push to GitHub Repository: Remote Permission Denied 403 Error
I tried everything: deleted VS Code, used SSH, tokens, and all the commands which are available on YouTube or Stack Overflow, but still I cannot push my code from VS Code to GitHub.
When I run:
git ...
-1
votes
2
answers
167
views
Having difficulty pushing code from VS Code to correct github MAIN branch -
I am facing a great deal of trouble pushing code to the correct branch of my GitHub repository. Let me explain in detail.
I am going to GitHub account and creating a new repository(private type) from ...
0
votes
1
answer
60
views
Does `--no-atomic` guarantees to update refs before the one with an error?
The flag --atomic for git push guarantees that if the command either succeeds or no refs are updated.
Does --no-atomic just turns off this guarantee or does it establish the opposite guarantee - that ...
2
votes
1
answer
155
views
How does `--reference-if-able` affect `git fetch` and `git push` propagation in a clone?
I have two local clones of the same remote repository (urlA):
mirror/ – created with
git clone --mirror urlA mirror
dirB/ – created with
git clone --reference-if-able ../mirror urlA dirB
In dirB, ...
-1
votes
1
answer
117
views
Accidentally rm -r'd final project, might still be in git commit
I was trying to push my final project, so the whole thing is stored in a commit, but one of the files was too large for github so I was trying to remove it. I've been staring at this for about 11 ...
-1
votes
1
answer
47
views
How do I ignore files in a directory in Git which are already staged?
I've a local directory: Networking (where I did git init).
I added another directory: Aruba (with *.pdf files in it) inside directory: Networking
Made some changes in the already existing files in ...
-3
votes
2
answers
134
views
Cannot push to BitBucket - fatal: refusing to merge unrelated histories
I created a new Bitbucket repo, and by default it created it with a .gitignore.
I have a large project not yet in source control.
This doc says to do the following:
git init
git add --all
git commit -...
0
votes
3
answers
95
views
git push non-current branch, omit remote name
Let's say I have:
Two remotes 'remote-A' and 'remote-B'.
(in fact the remote names contain long-ish numbers, so really don't want to type or remember them)
Branch 'branch-A' tracking 'remote-A/branch-...
0
votes
0
answers
69
views
How to restore a feature branch from upstream's specific tag and prevent to pull the latest changes?
UPDATED AT 24/2/2025=============================
I try to reproduce the issue by the commands below:
git branch feature
git checkout feature
git rebase --onto v0.5.7
git rebase main (which is v0.5....
1
vote
1
answer
97
views
Lapce - how to push changes to Github?
I'm checking out Lapce and it looks pretty cool.
Lapce tracks changes, and allows me to commit. QUESTION, is there a way to push changes to Github from within Lapce, or do I have to go to git bash to ...
1
vote
1
answer
111
views
Git push takes a lot of time after Writing Objects
So I have a gitlab-ce omnibus installation (version 17.5.1) on a centos server.
In this gitlab server I have an old (but still used) repository with 52 000 commits, 190 branches and total storage size ...
0
votes
1
answer
313
views
Your branch is ahead of 'origin/main' by X commits even after git push
I recently started using GitHub to manage my code, using git commit -a -m command to commit changes to all files (-a) added with git add <filename>, along with a message (-m).
After that, I run ...