Category "git"

Github new Branch creation restriction

I was wondering if there is anyway to restrict the branch creation in GitHub. I have 4-5 branches created for a repo and would like to maintain it that way. I h

create git alias for `git log --all --decorate --graph --oneline`

I use the command git log --all --decorate --graph --oneline very often and I want to create an git alias for --all --decorate --graph --oneline. I tried with

How to view code in a Github repository as of a specific release?

I would like to see what the code in a whole repository looks like of a specific release. As an example, I'd like to view the code for Apache Airflow as of vers

How to separate changed files from untracked files in vscode?

I am checking out vscode to see if it does anything better than other options out there. I have the native version control and GitLens installed. I am trying to

Makefile Fatal Error When Installing Git through TarBall(No such file or directory)

I was attempting to install Git through it's tarball, and I came across a few missing file errors. How might I fix this? /bin/sh: 1: curl-config: not found GIT

Fatal: could not read username for 'https //github.com' device not configured

I am trying to push code to github with SublimeGit plugin, but something weird occurs to me. Pushing to https://github.com/username/username.github.io.git

Android studio Gradle Tab

I've started to work on an android project that has many Gradle tasks. After cloning the project from git, there is no Gradle tab in Android Studio!

How can I fix git commit error "Waiting for your editor to close the file..." with VS Code?

I'm trying just git commit and Git is giving this message: hint: Waiting for your editor to close the file... /c/Users/AGT/AppData/Local/Programs/Microsof

How to exclude some directories from output of git status without having to modify the working tree (e.g. _not_ modifying .gitignore)

In my working tree there's a directory with several modified files that I temporarily would like to not see when I do git status. But this should ideally be don

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