Category "git"

Pushing a new branch in GIT

I am using GIT, and I have created a new branch (named foo) on my local (one that doesn't exist on the repository). Now, I have made some changes to my original

github auto authentication with personal access tokens doesn't work

I have followed the explanation here for setting up auto authentication of github on my CLI (on Linux, Ubuntu). In particular, I executed the command given here

Find out which branch has the most recent version of a certain file

Say I have a file in a repo and I want to find out which branch has the most recent version of the file, let's say the filepath is 'foo'. Let's assume the stat

Get PR number from Github API push event

I'm trying to create one or many comments in one or many files after a commit. The way I'm doing the POST request now is through the PR's number, passing the b

Get PR number from Github API push event

I'm trying to create one or many comments in one or many files after a commit. The way I'm doing the POST request now is through the PR's number, passing the b

Why doesn't git repo checkout the branch specified?

I've just started a new job where they're using git-repo. There's an XML manifest file that contains all the different repos that looks like: <project p

git pull multiple repositories

I have a question regrading intertwined repositories. I have a repo, lets call it common_repo. common_repo holds code which is relevant to most of my other re

How do I remove all stale branches from Github?

We have a lot of branches that are inactive (the newest is 7 months old, the oldest is two years ago). I'd like to remove all of those branches in bulk from the

LF will be replaced by CRLF in git - What is that and is it important? [duplicate]

When I create a new rails application I'm seeing a warning in git about LF replacement. I do git init git add . and then boom! I see

Strange GIT behaviour in VS2022 - Shows error but still completes action

I'm having a strange problem with Git i VS2022 and VS2019. When I Push, fetch or pulls I get a error saying "failed to fetch from the remote repository. see the

When I Git commit, cmd.exe not found

Quite new to git, so if i made any obvious mistakes I am sorry. When I do git commit, it prints the following message: hint: Waiting for your editor to close t

Unable to perform "git clone" on local system using Ansible

I am trying to clone a git repo on my local system. I have done this manually and it works fine, but when I try to do it via Ansible, it doesn't work out Here i

Github Desktop - Not showing changes

Basically I changed a few files in Notepad++ but it wont show up in Github for Windows. I have tried reinstalling, Restarting pc and constantly re-cloning in

What is the fastest way to transfer all of my GitHub repositories to GitLab?

I'm looking to move entirely away from GitHub to GitLab as easily as possible.

Why is repo sync not checking out the branch I had specified in the manifest file?

Suppose I have the following manifest file for the repo tool (MCVE script is included at the end of this post): <?xml version="1.0" encoding="UTF-8"?> <

how to download single folder OR file in gitlab repository

i have one repository. In this repository multiple folders are available. i have required only one folder in this repository. i am already try to following co

Change email address in Git

I have a project hosted in Git stash (now rebranded as Bitbucket Server). It is built using jenkins. Now I made a typo while installing my Git locally. Like @ab

How can I deploy my Laravel project to root folder in Hostinger with git?

I'm trying deploy my project to Hostinger with git, but I can't deploy direct to root folder (/home/uXXXXXXXX). The path in cPanel is directly to /home/uXXXXXXX

clone AWS codecommit repo via HTTP

I have set 2 repositories in AWS Codecommit and using before SourceTree from Windows, setting up access via HTTP protocol was and everything was working fine.

Git Pull Force to overwrite local files

"Git Pull Force", "git reset branch to origin" or in other words, to pull a remote branch to overwrite a local branch, seems to be wildly searched feature with