Questions tagged [git-push]
Pushes the changes from a local Git repo to remote
1,551
questions
-3
votes
1
answer
46
views
Why is git pushing unnecessary folders to my repo?
When I do a git push for one folder in my documents, somehow, all of my folders/files in my Projects folder are pushed. I'm making sure that when I run the 'git push' command, my path is in the folder ...
0
votes
1
answer
27
views
git push failing with Access denied to Gitlab
I am using git to push my code to Gitlab. Following are the commands I am using
git clone https://<mygitlab.com>/gke-app-namespace-deploy.git
cd gke-app-namespace-deploy
git checkout -b master
...
-2
votes
2
answers
50
views
git push local branch to remote branch
I'm going to push a local branch to a existing remote branch. The command I found is this:
git push repository_name branch_name
I'm confused with branch_name is this the name of the local branch I ...
0
votes
1
answer
13
views
Could not read/write from/to remote repository
I am getting that error when I tried to push commits to Github:
remote: Write access to repository not granted.
fatal: unable to access 'https://github.com/...../...../':
The requested URL returned ...
1
vote
1
answer
34
views
How do i restore git push -f without git pull from remote repo? [duplicate]
Local repository A(branch feature/2.0 on A) in my system, i did git remote add associated with a remote repository B (branch main)
git add remote repository B
and then nothing changed, direct git ...
1
vote
1
answer
42
views
git push returns remote: Permission denied , URL returned error: 403
i've cloned this repo
git clone https://github.com/arunavo4/sol-sell-escrow/
and after building&deploying it , i noticed in the Development Cycle it says
# Push your code to the main branch to ...
-2
votes
0
answers
21
views
I can't push my code in my github repository. It is showing fatal error
Details are here:
fatal: You are not currently on a branch.
To push the history leading to the current (detached HEAD)
state now, use
git push master HEAD:<name-of-remote-branch>
0
votes
4
answers
54
views
Pushing changes to branch other than main
I cloned a repo from github I made, I did some changes. My repo on github has 2 branches, main and dev. I want to push my changes to dev first and then main.
I ran:
git branch
while in the cloned (...
2
votes
1
answer
50
views
Can't push to private repository
By mistake i pushed .env file to github and then i wanted to hide .env file from my private github repo using .gitignore. For this purpose, i did many stupid things and now it's saying repository not ...
1
vote
1
answer
24
views
couldn't commit to Github remotely
I have been trying to create a repository from VScode but couldn't therefore I had to follow Github's default way of creating and pushing commits manually. The error it throws-:
git -c user....
4
votes
1
answer
107
views
Can't push Angular project - Github
So I'm trying to push my angular project to Github. The project structure is:
backend (Node API)
frontend (Angular)
.gitignore
In order to push the angular project, I positioned myself in the root ...
-1
votes
1
answer
38
views
How do I comprehend the 'all' concept in 'git push --all' and simply 'git push' but push.defaults configured to be 'matching' respectively?
I am having a bit of a hard time figuring out what the question title suggests. Basically, git push --all(or maybe less often git push --all <remote>) and simply git push but defaulted to '...
0
votes
0
answers
25
views
When i try to deploy heroku i got this error ! [remote rejected] farzana -> main (pre-receive hook declined) [duplicate]
I build a group project. When I try to deploy my project in heroku I got this error several time
do you have any idea about heroku deployment !
[remote rejected] farzana -> main (pre-receive hook ...
2
votes
4
answers
2k
views
GitHub Action incapable of pushing due to "unsafe repository" error
I have a private GitHub repository that has a GitHub Action that pushes files which are created at the Action's runtime to the repository. Since yesterday (2022-04-12), the Action fails at the ...
1
vote
1
answer
28
views
Why does the "From" line in a "git pull" response not list the bare repo's name?
I'm rather new to git, and I'm trying to understand the lines
...
From /tvm
f8322345..9837f82f master -> origin/master
...
in git's response to a git pull with branch dev checked out.
I've ...
0
votes
1
answer
22
views
Jenkins Job is not able to generate Merge request
Our team is developing a Jenkins job using which we can create Merge/Pull request when we are merge dev branch to release branch in our repo. This job will do this task for 32 repos at once as all ...
0
votes
0
answers
31
views
Committed to GitHub and an RPC error came up
I made a new GitHub repository, and made a website and tried to commit the code to the repo - but then this error popped up after I did the following steps:
git init
git add .
git commit -m "...
0
votes
1
answer
74
views
failed to push some refs to 'https://github.com/<username>/my-history.git'
I can't update the source code in the repository on github.com using the following command.
$ git push -u origin master
The following error is displayed:
! \[rejected\] master -\> master (...
0
votes
1
answer
31
views
Will git revert on my last commit that failed to push show me my modified files back in source control explorer?
QUESTION - If I perform a git revert on the last commit '28ea268...', will it show me my modified files again in Source Control Explorer in VS Code?
FYI - My last commit ('28ea268...') failed to push ...
0
votes
1
answer
62
views
How do I edit an external submodule, and push it to my own repo?
I am working on my thesis, where I extend another paper. This paper has made all their code public in repo X, also using a submodule themselves: let's call that one Y.
For my own project, I have made ...
0
votes
1
answer
173
views
How do I stop VS Code code from pushing(syncing) to Git, if it's hung up trying to push a large file?
QUESTION - How do I stop VS Code from trying to push to Git, so I can add the unneeded large files/folders to gitignore and then proceed to push again?
I upgraded Angular and it created a folder in my ...
0
votes
0
answers
350
views
I can't do git push or pull because i get "The requested URL returned error: 403"
When I try to git push origin master and authenticate my credentials I get this error...
remote: Write access to repository not granted.
fatal: not possible to access 'https://github.com/ElmisteriOkay/...
0
votes
0
answers
19
views
Rebase in Git didn't put local changes together?
I have been working on a feature branch that I branched from our main branch. Whenever I pull and rebase changes from main into my feature branch, I always ended up with other people's commits created ...
0
votes
1
answer
62
views
Can not Push on Github through Ubuntu Terminal
I am trying to push to github from my Ubuntu machine.
I am able to Push from Visual Studio Code terminal, but can not Push from Ubuntu Terminal or Android Studio Terminal.
Every time I try to Push ...
-1
votes
1
answer
37
views
Basic question on practice of git pull before git push [closed]
On a high level, I understand that it's a good practice to git pull(and manually merge conflicts if any) before git-push. I am working in an enterprise setting. My questions are:
(1) Can I do git-push ...
1
vote
1
answer
112
views
Constantly getting git error "port 22: Network is unreachable" with no clear cause
I'm using Fork as a git client. Recently, whenever I try to push/pull/fetch from a remote repository I get this error:
Pushing to bitbucket.org:(repository)
ssh: connect to host bitbucket.org port 22:...
1
vote
0
answers
126
views
git push via gitlab CI runner failed with 403 error
I have a gitlab runner for git project A, I want the CI runner run some scripts everytime there ar commits from A and push the results to project B, but when pushing to project B but I got:
"...
1
vote
2
answers
196
views
What is the difference between git push -u origin and git push --set-upstream origin
I'm learning how to use git and I need to clone from a master github repo, branch it, make changes, and push the branch to the github repo - but I'm finding myself a bit confused on what the best way ...
0
votes
3
answers
68
views
How can I check that commits stay in author date order?
Motivation
Let's say we have these commits (most recently committed on the left):
E-F-G-H-I-J-K-L-M-N
We want to release E on another branch, so we cherry-pick it, but a conflict arises and we ...
0
votes
0
answers
39
views
How can I configure the default MR title & message via push options in GitLab?
GitLab has a long-standing issue to make MR titles & messages configurable; see Ability to customise default merge request title (#16080).
Unfortunately the change Set default MR title/description ...
0
votes
0
answers
9
views
I cant change permisions to gitHub accounts in vsCode
I am trying to push a project to gitHub using my primary github account but for some reason my vsCode keeps associating the push to my secondary gitHub account. Here is the code:
PS C:\Users\excursion&...
1
vote
2
answers
38
views
Git pull from two different branches in two different repositories into one local branch
I cloned a Git repo locally--call it A. This repo A has a branch named aaa. I created a new local branch--bbb. I then created a new GitHub repo (empty)--call it B--and pushed bbb to B. Next, I ...
0
votes
0
answers
23
views
Maintain two sync repo
I need to sync two git repo for a project :
I have a first repo that is accessible only by me and my professors.
The second repo is in gitlab and is accessible only by me and my teammates.
So as my ...
1
vote
1
answer
73
views
Workflow error working directory has unstaged changes
Whenever I am trying to push/merge changes, a workflow in GitHub is getting failed and displays an error that "Working directory has unstaged changes";
After committing, it's asking me to ...
0
votes
1
answer
87
views
Does intellij offer master branch protection
I want to know if Intellji offers master branch protection and if so how do I implement it?
Scenario,
I checkout the master branch from a repo and make a small change but forget to create a feature ...
-3
votes
1
answer
39
views
How to remove a file from GIT if it doen't exist any more
I was trying to use git and git-hub for my first time;
and there was a file that I wanted to change it's name so I just changed it and committed then when I pushed it but it says :
[rejected] ...
0
votes
0
answers
39
views
Git - How to reconnect an existing project (changes made) to an existing repository?
I have a project that was connected to a git repo. Now I changed the machine. I downloaded the project on the new machine and made changes. Now I am trying to connect to the same repo and push the ...
1
vote
3
answers
262
views
Git push asks username & password for HTTP repo origin
I am working on a project of mine and I got the codes uploaded in github. I started working in this project from Win10 os and currently I'm working in Arch linux. In windows it didn't use to ask me ...
0
votes
1
answer
506
views
Git push failure
I am trying to push to git and am getting this error message
Enumerating objects: 57, done.
Counting objects: 100% (56/56), done.
Delta compression using up to 8 threads
Compressing objects: 100% (40/...
0
votes
1
answer
519
views
Git push writes more and more objects every time I do it
Enumerating objects: 85, done.
Counting objects: 100% (85/85), done.
Delta compression using up to 8 threads
Compressing objects: 100% (78/78), done.
Writing objects: 15% (13/84), 41.26 MiB | 46.00 ...
1
vote
0
answers
102
views
Git push always fails to remote repository
While working on certain codebase, I accidently set the incorrect origin and pulled. I removed all those files pulled form incorrect repository and fixed the origin. However after that I'm unable to ...
0
votes
1
answer
58
views
How to connect windows credential manager with ubuntu
Actually i need some help to connect ubuntu with windows credential manager. Because when I want to push something on my repository ubuntu always want password (Acces token).
I tried git bash and cmd. ...
0
votes
1
answer
55
views
Reducing .git folder size in case of using github as a blockchain snapshot repository
I have created a repository on GitHub with the snapshot of the blockchain database folder that I am updating every day by command:
git pull
git fsck
git prune
git add .
dt=$(date '+%d/%m/%Y');
git ...
1
vote
2
answers
139
views
Failing to push origin to GitLab
Having a hard time learning how to push my Git repository to gitlab.
Currently getting this error:
ssh: connect to host gitlab.stud.idi.ntnu.no port 22: Connection timed out
fatal: Could not read ...
0
votes
1
answer
47
views
cache git push delta compression for later retry on error
Is there a way to locally "cache" the delta compression created by git-push so that in case of an error during the push it can be repeated without having to compress everything again?
...
1
vote
1
answer
151
views
LFS Object stuck in Git history
I am building a static website and tried to upload a large video file thanks to Git LFS, but the commit/push never succeeded. After some change I decided to not upload this file and wanted to ...
0
votes
0
answers
15
views
git pull modifications without subtrees
I'm new with subtrees and I have the followin issue.
I've 2 repos (repoA and repoB) and repoB is configured as subtree of repoA
And I have 2 developers, user1 and user2, working with the same repoA ...
0
votes
0
answers
41
views
Not getting verified commits on GitHub even when VS Code signed in with GitHub
I am using VS Code and I have signed in using GitHub, but still every time I push a commit onto the GitHub repository, it doesn't come up as verified. Not sure how I would go about getting verified ...
1
vote
1
answer
86
views
What is the difference between "git push -f" and "git push -ff"?
I know what git push -f ( --force) does , but I saw that -ff is used also.
Initially I thought that is was the abbreviation of --force-with-lease but I didn't found any reference regarding "-ff&...
0
votes
1
answer
250
views
Authentication Failed for Git push to Azure
I am trying to deploy a web app to Microsoft Azure. Everything works succesfully in creating the app and it appers in the Azure portal. When I try to push my repo to Azure it asks me to enter my user ...