Questions tagged [git-pull]
Fetches changes from a remote repository and incorporates them into the current branch of a Git repository.
1,240
questions
-1
votes
0
answers
15
views
What happens when I fetch/pull to a branch where I have already developed some things
I made a mistake at the beginning of my development, I started coding on a branch that was outdated and just realized after I commited my changes and opened a Pull Request to merge with the master, ...
-1
votes
0
answers
32
views
My local files were deleted after git pull command, how can I get my files back?
I wanted to transfer a folder with dozens of files to git hub. My main folder was divided into 6 subfolders. Since this main folder has the same name as the repo I created in git hub, I wanted to push ...
1
vote
0
answers
52
views
git clone and git lfs pull doesn't pull the LFS files at all
I'm cloned a repository via SSH and it seemed to clone everything without an issue. Then I moved into the respective folder and then did git lfs pull. However, this is greeted with no objects being ...
0
votes
0
answers
37
views
Error while pull/fetch changes from branch in WebStorm
Cannot fetch/pull changes from remote branch.
I executed git command in WebStorm terminal: git pull origin dev
Got this issue:
fatal: bad object refs/heads/dev 2
error: github.com:MyProgect/settings....
0
votes
2
answers
64
views
Can't do a git pull or a git push
When I do a git pull in the master branch, git show this message:
There is no tracking information for the current branch.
Please specify which branch you want to merge to.
See git-pull(1) for details....
0
votes
0
answers
27
views
I do not show any folder in VS while pul the code, but it shows in the file explorer
I am facing a problem that files and folders are not showing in Visual Studio while taking pull or add from file Explorer
(https://i.stack.imgur.com/zkS7g.jpg)
I cleaned the solution multiple times ...
0
votes
0
answers
31
views
Periodically pull a specific folder from one git repository to another
I have a large git repo R1 ~30GB in size that has a large folder F1 roughly ~15GB in size. I cannot modify this repo since the repository has a high frequency R/W operations all the time.
I want to ...
0
votes
2
answers
60
views
Git pull in IntelliJ without modifying change list
I have multiple git changelists in IntelliJ, and now I need to update my local code by doing a git pull from remote. However, I receive an error while doing the git pull which says "Commit/Stash ...
0
votes
0
answers
10
views
is it possible to invoke one VS code extension to another?
Is it possible to invoke extension with different functionality in already created extension for some other task?like I have created extension which working on some other task but now in same I want ...
0
votes
0
answers
20
views
Invoke one extension to another VS code extension
Is it possible to invoke extension with different functionality in already created extension for some other task?like I have created extension which working on some other task but now in same I want ...
0
votes
0
answers
8
views
Git pull folders not present in Dev branch but keep other Dev folders unchange
I need help with some git pulling/merging
2 branches: master and dev
Present states:
State of folder0 and folder1 in master and dev = different
State of folder2 in master and dev = present in master, ...
-1
votes
2
answers
57
views
I'm working on a project from two different computers. How do I simply replace the local repository with the one on GitHub?
I'm working on a project on two different computers and I want to be able to simply push from one computer and pull it on the other, so that it essentially replaces the local one with the one on ...
-1
votes
2
answers
146
views
How to correctly merge pull request and reconcile local repository
When I merge a pull request on GitHub and then run git pull -a on the local repository I found another commit: Merge branches 'blabla' and 'main' of github.com:repository, and in the log, there is ...
-1
votes
1
answer
4k
views
Git message "You have divergent branches and need to specify how to reconcile them." suddenly appearing [duplicate]
For years I have been working on a project along with my colleagues following this pattern.
git checkout dev
git pull
git checkout -b my-branch
git add .
git commit -m "cool new changes"
git ...
1
vote
2
answers
71
views
Git - Update older open feature branch
After the holiday I would like to continue working on my open ticket. I already started working on a feature ("feature/my-new-feature") locally before the holiday. After one week my ...
-2
votes
1
answer
80
views
Can't push refs to remote
First this error shows , then in output terminal it says
Failed to execute git {
"exitCode": 1,
"gitErrorCode": "PushRejected",
"gitCommand": "...
0
votes
0
answers
44
views
Can't push to GitHub because of a missing object
I was having a problem with large files already deleted, so I use git filter-repo to solve this problem as I see in Stackoverflow when I finished following the steps I was surprised that the git don't ...
1
vote
0
answers
24
views
Trying to pull remote repo to local [duplicate]
What I am trying to do was pull from remote repository to local. I had an issue with "refusing to merge unrelated histories.
I got an answer from SO. I wrote a command of git pull origin master --...
-1
votes
1
answer
45
views
How to solve conflicts while pulling a branch from a remote repository?
I am currently working on a project that involves forking a specific GitHub repository. In my forked version, I am required to incorporate a branch named windows into my project. The original main ...
0
votes
0
answers
26
views
Not a git repository although git init was typed before git remote and repository URL was entered in the remote command
My friend is working on a Pokemon Emerald ROM Hack, and he wanted to merge into the Dynamic Overworld System as part of it. However, git remote was unsuccessful.
He typed git init before remoting
He ...
0
votes
0
answers
33
views
Determine if git command failed on batch file [duplicate]
I have a batch file where I want to use the command git pull
Sometimes the git command might fail from different reasons (The one that I discovered was that it had modified files)
However using the %...
0
votes
1
answer
24
views
Is there an option to change output format for `git pull --rebase --verbose`?
When I do git pull --rebase --verbose I see the line in an output:
...
Changes from 4baabb8df936e34958ae4076dccdab6634e4d33b to d404ec36565ad5dd2f476ec7a11f9428e377925d
...
Is there an option to show ...
0
votes
0
answers
10
views
Undoing garbage collection
Recently i was working on a project with two other guys, now i encountered an error when i was trying to pull making commits to my local work, after checking stackoverflow i was advised to to do git ...
0
votes
0
answers
81
views
Problem in pushing, pulling in Sourcetree
I have added a GitLab account in SourceTree. In my GitLab account there is no 2FA enabled. I have already created Personal Access Token in GitLab and have been using that token to authenticate my ...
0
votes
1
answer
66
views
How can a git pull on a branch with no changes result in conflicts?
So the scenario is quite basic: I did a checkout of a git repo, on branch X. Made some changes, performed a commit and pushed them, all good so far. No other changes made for 2-3 days. Afterwards I ...
0
votes
0
answers
10
views
How to upload/push files in folderB to remote repo without adding and commiting certain files form folderA
I have two working folders, say fA and fB. I make changes in both fA and fB. I want to commit and push fB first with a particular commit message (e.g. "changes made to fB)" that is not ...
0
votes
0
answers
27
views
Script not running on Pycharm after Github pull
So far I have been using pycharm and running the scripts locally on Pycharm without any issues.
Today I did a pull request from my local to Github branch.
After the completion of pull request, my ...
0
votes
1
answer
43
views
How do I configure git so I can just push a branch?
Here's what I want:
git checkout -b mybranch
<make changes>
git commit -m'changes'
git push
The branch I just created with the changes I made to exist on the remote origin. Furthermore, when I ...
-1
votes
1
answer
75
views
How to force overwrite changes on a specific file every git pull?
On GitHub I have an action that creates, automatically at every commit, a file with the latest news.
It happens that the editor to visualize the file can change it with some metadata, formatting tabs ...
0
votes
1
answer
189
views
Pull changes from a specific directory of the remote repository
I have a git repo (repoA) and I am trying to pull the files from a particular directory in the remote repo (repoB). How can I achieve this without pulling files from all the directories in repoB?
To ...
0
votes
0
answers
29
views
Server to AutoPull when someone pushes
So everytime one of the developers makes a git push, i want my remote server to automatically make a git pull. I have tried GitHooks/GitActions but nothing seems to work. Is this even doable with ...
-1
votes
2
answers
97
views
Git remote branch is ahead of the local branch. Then, when using `git pull`, I'm told that the local repository is "Already up to date."
There is one additional file in my remote repository branch "v2". On my local repository branch "v2", git status states:
"Your branch is ahead of 'origin/main' by 1 commit.&...
0
votes
1
answer
38
views
Cannot resolve conflict on Git (remote is 1 commit ahead)
A project that I'm working on has around 200 submodules. I made some modifications in my local repo, around changes to 150 submodules without commit & pushing.
But it turns out that just when I ...
0
votes
0
answers
86
views
Issue with pulling/pushing code to github
While trying to pull code from Github, it throws this error
SSL certificate problem: unable to get local issuer certificate
Background - Running on windows, corporate laptop but accessing git doesn't ...
0
votes
2
answers
102
views
Git: Do you have to do a commit after a pull from remote?
If I'm on a local branch and pull from remote, and then try to switch to a different branch, it tells me to commit or stash changes first. I figured that when I do the pull, I'd be getting all the new ...
1
vote
0
answers
57
views
Unable to git push a submodule, but being able to pull it
I am not very skilled in git. I have a git repo, say mainrepo, with a remote one on Bitbucket. mainrepo has a submodule in mainrepo/modules/mymodule.
I do not understand exactly what a submodules is, ...
0
votes
0
answers
156
views
How to resolve "fatal: bad object refs/stash 2 error: https://github.com/example.git did not send all necessary objects" git error
% git pull
remote: Enumerating objects: 5, done.
remote: Counting objects: 100% (5/5), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 5 (delta 3), reused 5 (delta 3), pack-reused 0
...
0
votes
1
answer
49
views
How can i push changes to my main branch? that's the only one I have
I have a repository in which I have only main branch. i want to push my new changes to repository but i am facing this issue
I tried everything. i even deleted my master branch which was 2 commits ...
1
vote
0
answers
161
views
Pass multiple user input to ssh remote command
I'm trying to make a script that creates a ssh connection and executes a remote command which needs multiple user interactions. The remote script expects two passwords sequentially. One of another ssh ...
-1
votes
2
answers
78
views
Branch feature is ahead of origin by X commits after merge dev
Let's say I'm on featureOne, someone else is on featureTwo and there is a dev branch. Both of us merge our work into dev. I now want to grab the dev branch and merge into featureOne so I can grab the ...
1
vote
1
answer
99
views
.pdf files not updating when I use git pull on server although they are updated on github repo
So I am trying to update a .pdf file that I am using on my website (termsandconditions).
What I have done and tried is replacing the .pdf file in the repo which has worked because if I go to the repo ...
0
votes
0
answers
37
views
Git pull merge in conflict [duplicate]
I have no advanced experience in Git.
I have the following scenario.
I did a branch, let's say Branch-A (it points to remote branch origin/Branch-A) and I start implementing things in it. Later my ...
0
votes
0
answers
38
views
Git not recognizing recently added submodule
In my project, I have two submodules. One added in the last commit (subA) and one added after the last commit (subB). I have verified in .gitmodules, .git/modules/, .git/config. In all three places, ...
0
votes
1
answer
234
views
Is git able to resolve any conflict on the remote?
In some situations while using git you are not able to push your commits due to commits on the remote branch, which you do not have on your local branch. You pull first and sometimes the conflicts are ...
0
votes
0
answers
37
views
How to fetch changes from a forked repository which is a subtree
So I have an issue wherein I forked Repository A to create Repository B.
Then I added Repository B into a subdirectory of Repository C via the subtree command as follows:
git subtree add --prefix={...
2
votes
1
answer
2k
views
How to solve error bad object refs/heads/main (1) after running git pull
How can I solve this error when I run git pull in Terminal on a Mac?
remote: Enumerating objects: 115, done.
remote: Counting objects: 100% (115/115), done.
remote: Compressing objects: 100% (66/66), ...
0
votes
1
answer
108
views
Unified updates : Update private repo with updates from local files(refactored, renamed, updated) & get regular updates from original repo
I have just started learning to us GitHub CLI tool on Windows. Consider me a newbie
I have a use case that looks like this :
Let me summarize before i go a little deep:
My use case is : Cloning an ...
-1
votes
1
answer
70
views
My local branch is not able to synch with master
I am working on local branch name is local1 .I wrongly deleted one file which exists in master from my local branch and then pushed update to my local branch.
While raising PR it is showing file is ...
1
vote
1
answer
115
views
jGIT Detect Conflicts by Commit&Push and Pull
Beside merging branches, GIT can have conflicts by
Commit/Push ( if a file in GIT has been modified meanwhile
by Pull, if the local file has been modified by me.
How can I list this conflicts before ...
0
votes
0
answers
40
views
Unable to access 'https://github.com/user-name/repo-name.git/': The requested URL returned error: 403
Whenever I try to:
push,
pull,
clone
it gives me this error:
permission denied :unable to access 'https://github.com/Sherif-nasser/mqtttest.git/': The requested URL returned error: 403
Things I ...