Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
70 views

I have the following Git tree (newest at top) with two branches, feature and master B # Delete file Bar (HEAD, feature) A # Change file Foo M # A commit that I do not want (format shift related ...
diwhyyyyy's user avatar
  • 6,428
Tooling
1 vote
5 replies
129 views

Let's say the project has the following versioning system: "X.X.X", where the first digit represents the major version of the project, the second digit represents the minor version, and the ...
Serzhio S's user avatar
Advice
0 votes
5 replies
68 views

I am on the main branch, and I have some changes I want to move into it in another branch called "temp". How can I move the changes into main, without making a commit? I know I can use ...
Yonatan Reicher's user avatar
Advice
0 votes
5 replies
66 views

I've seen that creating a branch hierarchical under another branch is not allowed, that is: > git branch foo > git branch foo/bar fatal: cannot lock ref 'refs/heads/foo/bar': 'refs/heads/foo' ...
skyking's user avatar
  • 14.6k
Tooling
3 votes
3 replies
120 views

Git has lots of useful commands and features, such as cherry-pick, (interactive) rebase, bisect, replace objects, signed commits. What's your favorite command and why? What does it do that other tools ...
knittl's user avatar
  • 270k
Tooling
0 votes
0 replies
59 views

In VS Code, Ctrl+P (workbench.action.quickOpen) lets me quickly switch between all files in the workspace. Is there a way to: Quickly list only modified or newly added files (since the last commit) ...
jahangir1x's user avatar
-3 votes
0 answers
87 views

I had made changes in my local main branch and committed a few versions. I have two remote branches in github: an upstream which has original repository (used for pulling change), another origin for ...
Mitali Sharma's user avatar
-4 votes
1 answer
104 views

I cherry-picked a fix from a feature branch onto master successfully, and started a new feature branch B. Only then I realized that the cherry-pick causes use of a variable that had been introduced in ...
U. Windl's user avatar
  • 4,870
Tooling
2 votes
2 replies
53 views

I am trying to set up branch protection/restriction rules to control who can create or push to specific branches. My goal is to enforce a strict naming convention where only a specific pattern is ...
sooraj kunnikkal's user avatar
-3 votes
0 answers
44 views

I have a VPS with Windows on which I store a git repo. I made an SSH connection, and I can communicate from my computer (also Windows) with the VPS. But a push doesn't work because the path is wrong......
user3792883's user avatar
Advice
0 votes
5 replies
60 views

For disaster recovery, my company needs backups of our ADO Git repos. My predecessor set up a backup by cloning the repos with --no-checkout option: git clone --no-checkout {ReposURL} {...
SeraphimPlays's user avatar
-2 votes
1 answer
84 views

Let's say I have code in git, which I want to remove before merging to the master, but might want to use again at a future time (e.g. for debugging or something). e.g. public class MyClass { private ...
komodosp's user avatar
  • 3,712
Best practices
2 votes
3 replies
57 views

I’m working on a project where we already use modern version control practices: Git with GitFlow branching Pull requests with mandatory reviews Conventional commit messages CI-based checks Despite ...
Sabbir MMS's user avatar
-4 votes
1 answer
112 views

I have a git post-commit hook written in Ruby. #!/usr/bin/env ruby require "git" # ... It works perfectly fine from the console. However, when it's run from IntelliJ IDEA I see: 2026-02-18 ...
pixel's user avatar
  • 26.9k
4 votes
2 answers
175 views

I am using a git bare repo to manage my dotfiles and it works pretty well to sync my configuration between different machines. The setup is taken from https://www.atlassian.com/git/tutorials/dotfiles, ...
point618's user avatar
  • 1,495

15 30 50 per page
1
2 3 4 5
10246