git Questions
5
Let's say there is a remote clone of the same git repository that my local repository is cloned from - and there is a branch on that remote clone that isn't present in my clone (not the default bra...
3
I have created test repository: https://github.com/Labutin/CompareBranches
Let's try to clone and compare two branches branch_01 and branch_02
$ git clone https://github.com/Labutin/CompareBranche...
4
So this question isn't this one: Remove files from Git commit although it's similar.
I'm in a situation where I cannot do:
git reset --soft HEAD~1
because I am at the very first commit.
I'm wo...
Solution asked 24/10, 2017 at 6:10
7
Solved
Problem Description
I'm having trouble making commits, when I try to make a commit with the command, for example:
$ git commit -m "add readme"
pre-commit not found. Install pre-commit wit...
Conny asked 24/6, 2022 at 12:58
3
I'm initializing a new Git repo with a huge pile of files. The repo is using Git LFS. I want to ensure that I've told LFS to track all files that should be handled, before I make my first commit.
...
3
Solved
I have a question with regards to a flag which can be used with the merge command in Git. Apparently, if you use --no-ff with merge (no fast-forward flag), it will create a new commit object at the...
2
Background:
I have 2FA set up in my Github account. I cloned a repo using https. I am trying to use git credential helper to store the github creds (username and Personal Access Token) so that I do...
Beforehand asked 20/9, 2018 at 15:15
5
Solved
I have a repository in Bitbucket. In that repository i have project called Demo Which is a maven project. I am trying to deploy Demo with Jenkins.
Steps I am following.
Created a job(Item) in Je...
2
I use a lot of private node packages (stored on my personal github repositories) in my projects:
"devDependencies": {
...
"my-package": "github:username/my-package#master...
Botsford asked 13/3, 2021 at 8:33
8
Solved
When I try to push changes to my online repo, the sync icon on the left of the status bar doesn't stop rotating.
OS: Windows 10
VSCode ver: 1.58
Krause asked 15/7, 2021 at 19:55
2
Solved
I'm working on a project, so I pushed a feature branch to the remote repository(using Atlassian bitbucket) and opened a pull request.
But on one file, the bitbucket diplay a "MOVED" statu...
Sungsungari asked 26/9, 2016 at 12:59
4
Solved
I know that you can revert back to a previous commit but it doesn't sound like the history will be gone. How can I revert back to a previous commit and make sure the commits that came after are gon...
Shorthand asked 17/12, 2020 at 23:40
4
In the move from C9 to hosting on my Macbook via SSH, I've had to re-download Kohana and change some other things just to get my site working; I don't want those to be committed. Is there any way t...
Nombril asked 17/6, 2013 at 5:44
5
I m working on project in Jupyter Notebook.
Whenever I make a commit not only changed code and markdown columns get commited but also results from code columns.
That makes Git diffs unreadable an...
Swallow asked 16/3, 2020 at 18:51
5
When merging branches with --squash, git does no longer seem to be able
to determine whether a branch has been fully merged. How can I quickly check this with existing git commands?
To reproduce, ...
Apocrypha asked 12/9, 2019 at 7:38
2
Git has given me a lovely christmas gift... I'm trying to git push a bunch of commits, like 6 GB. And I'm getting the following error message:
-Counting objects: 525, done.
Delta compression using...
8
Solved
I do
git pull
to get new commits from remote and merge them with my local branch.
How can I list the commits that "just came in" ?
Bergstrom asked 31/8, 2012 at 13:42
3
I am trying the checkout a branch from a remote repository into a local branch, and receive the above error.
For those who want to direct me to:
Why is it not a commit and a branch cannot be creat...
3
Solved
pwd is "present working directory". Here's the situation.
pwd: /path/to/pwd/
git repository: /repo/path/.git/
I want to do a git pull from origin, but without changing my current directory.
To...
Eckhart asked 12/3, 2012 at 19:1
2
Solved
Context
I often move, rename files in Visual Studio 2022. Rename is a standard refactoring practice. However when I rename a file in Solution Explorer, not git mv operation is performed, instead gi...
Reify asked 18/12, 2021 at 7:30
10
I'm extremely new to the command line and just programming in general. I use windows, and I'm doing prep work for viking code school. In one of the lessons it asks us to use the 'open' command in G...
4
Solved
I'm trying to clone a Bitbucket repo on a remote Windows computer, using the Git Bash terminal from Git For Windows. The remote computer is able to surf the internet in a web browser, and I am able...
4
For instance, let's suppose I have a branch called develop, and all my features will be a branch created from develop that later I will need to do a merge request (in GitLab, what in GitHub would b...
2
Solved
How do I list files that are "diff"ed between my current local and the corresponding remote branch?
The situation is that I had made a push to remote earlier and since then have rebased off master...
7
Solved
How could I force the mergetool GUI to be always shown and disable any automatic resolving?
Sometimes when there is a conflict during a merge and I use the mergetool, it simply immediately returns...
© 2022 - 2024 — McMap. All rights reserved.