Skip to main content

Questions tagged [git]

Git is an open-source distributed version control system (DVCS). Use this tag for questions about Git usage and workflows. Do not use this tag for general programming questions that happen to involve a Git repository. Do not use this tag for GitHub/GitHub Actions questions that do not involve git usage; use [github] or [github-actions] instead. Do not use the [github] tag for Git-related issues just because a repository happens to be hosted on GitHub.

-1 votes
1 answer
20 views

Excludung edited file in git commit and staging

Sometimes I need to exclude a edited file. I mean, you need to have it in the repository but for instance you have some local development value which you do not want to commit and push. Most of the ...
Ozan BAYRAM's user avatar
  • 2,870
0 votes
1 answer
24 views

How do I set up github personal access tokens to access a third party repository?

I have an old repository that is not owned by me, that I have access to. I haven't used it since before personal access tokens. Nor has the owner of the repository, so my access should still be there. ...
ThoughtfulHacking's user avatar
0 votes
0 answers
11 views

Review PR in Android Studio and cmd+click around, it is unclear which version of the file is presented

I'm trying to use the PR review option in AS for the first time. I click on a PR #217 and look at one of the files. [![enter image description here][1]][1] I then cmd+click on a param to see usages ...
Alon's user avatar
  • 693
0 votes
0 answers
25 views

Getting ` warning: refname 'HEAD' is ambiguous.` after `git clone --bare` and `git worktree add`

I'm lookng into git worktrees b/c I want to work on multiple branches at once. Did the following setup # Created new E:\ partion cd /d E: mkdir repos cd repos git clone --bare <repository-url>/...
joseville's user avatar
  • 841
0 votes
0 answers
15 views

Cant push or commit to github repo using visual studio git

I set up my ssh and stuff, I set up my key and it shows as correct on github. When I cloned the repo it worked, but when I try pushing, nothing happens, and when I get: Git failed with a fatal error. ...
Jgott933's user avatar
-1 votes
1 answer
35 views

pre-commit won't run stage commit-msg local hooks

I'm having great difficulty making something that seems simple and logical but doesn't work. As part of a GitHub repository with Python code, I want to manage a pre-commit that will launch a python ...
Geoffrey's user avatar
0 votes
0 answers
23 views

git diff list of files on github action's PR

When I open a pull request, I have a github action set to trigger a node script: name: Check i18n tokens 🇮🇹 on: pull_request: types: [labeled, unlabeled, opened, synchronize, reopened] ...
Bertuz's user avatar
  • 2,518
0 votes
0 answers
15 views

Git Alias for Powershell Profile Does Not Work [duplicate]

Git commands work on my Powershell and I've verified that my environment variables on Path for Git are correct. My profile looks like this: oh-my-posh init pwsh --config 'https://raw.githubusercontent....
BobDidley's user avatar
  • 123
0 votes
0 answers
35 views

What does the `foo]` syntax mean for a git option? Or is this `git-clone` Synopsis missing `[`s?

The git-clone doc has the following synopsis git clone [--template=<template-directory>] [-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror] [-o <name>] [-b <name>] [...
joseville's user avatar
  • 841
0 votes
2 answers
35 views

How can you rebase a branch that is tracked remotely?

We've got a development branch, dev1. Starting from that, I create a feature branch, f1 and push to our git server: git checkout -b f1 git push -u origin f1 I make some changes, commit them and push ...
mconner's user avatar
  • 1,436
-1 votes
1 answer
21 views

How to Resolve "Need to specify how to reconcile divergent branches" Error When Rebasing in Git? [duplicate]

I encountered an error while trying to rebase my GitHub project hint: You have divergent branches and need to specify how to reconcile them. hint: You can do so by running one of the following ...
Nasima's user avatar
  • 1
0 votes
0 answers
23 views

Store multiple repository in the same bare repository

I have a CI/CD with multiple projects (some are (really) big (Go)) and want to reduce bandwith consumption / CPU usage on the server and so I need a cache for git objects on my runner. But because I ...
Djabx's user avatar
  • 715
0 votes
1 answer
31 views

Why does `git pull origin master:master` from non-master branch cause branch to be rebased?

I'm on branch master and do git log commit 9937b91089895fac45a39a3bda2935e19eb42554 (HEAD -> master, origin/master, origin/HEAD) ... git status prints On branch master Your branch is up to date ...
joseville's user avatar
  • 841
0 votes
1 answer
23 views

Git - could not resolve host: bitbucket.org - 'dig' command results

While working in WSL and git pull/push to git, I suddenly get the response ssh: Could not resolve hostname bitbucket.org: Temporary failure in name resolution fatal: Could not read from remote ...
quinny's user avatar
  • 710
-2 votes
0 answers
29 views

Merging feature branch to master branch [closed]

I create a file named course on the master branch and put some text in it and commit after that i created a Branch feature and switch to it and completely change the contetnt of course file and commit....
user26432412's user avatar

15 30 50 per page
1
2 3 4 5
10198