Most voted "git" questions
Git is an open-source distributed version control (DVCS) system. Use this tag for Git-related questions, DO NOT USE for programming issues involving a Git repository.
Learn more…924 questions
Sort by count of
-
1
votes0
answers99
viewsGit - TFS - Ways to work with team versioning
Good morning/late/evening! Today where I work, we have 3 branches: dev, homologation and production; Everything everyone on the team does, we go straight up the dev branch, everyone tests there goes…
-
1
votes0
answers14
viewsNo . gitignore this '!/wp-content/plugins/' equals this '!/wp-content/plugins/*'?
No . gitignore this notation !/wp-content/plugins/ has the same result as this other? !/wp-content/plugins/*
gitasked 5 years, 3 months ago Allan Dantas 359 -
1
votes1
answer252
viewsGit - How to change a commit message
I did the following: Git add . //Adicionei todos os arquivos alterados Git commit -m 'mensagem que quero editar' Now, before I push, I want to edit the message from this commit. How do I? UPDATE I…
-
1
votes1
answer50
viewsDoubt about Git - branch master
Look at the image below, I’m no longer inside the directory where my Git repository is, but the master branch keeps popping up. Why?…
gitasked 5 years, 2 months ago João Caetano 53 -
1
votes1
answer1423
viewsHow to undo 'Discart All Changes' from Visual Studio Code
In Visual Studio Code, the "Sourse Control: GIT tab" in "Discart All Changes" deleted the changes made and some files I created. There is a way to reverse this and recover the deleted files?
-
1
votes1
answer66
viewsHow do I browse a Git repository?
I want to test some software metrics and I need to go through a git repository, but I need to do this using the git commands themselves, for example git log, git show... One of the metrics I want to…
-
1
votes1
answer404
viewsWhen I push to git, characters with "Place" accents. How to resolve?
I have a project in Java, and for example: Type in some line of my code "Not set", when I push to git it gets "N the set" or something worse. Is there any way to avoid this in any git configuration,…
-
1
votes1
answer693
viewsHow to replace my project’s local repository in Git
I was developing a project in a directory on my computer and put it on github. I had some problems with the project and as I had done few things I decided to start again in another directory. Using…
-
1
votes2
answers365
viewsDo not create folder when cloning Gitlab project
I have with my partners a repository in Gitlab. The repository already shows by default, the folder api and too txts, that is, I don’t have a folder inside the repository, where, by opening it, I…
gitasked 4 years, 10 months ago Luiz Roberto Furtuna 593 -
1
votes0
answers102
viewsHow do I upload files in GIT that are more than 50MB in commit size?
I’ve tried using Git Large File Storage but ended up not working.…
-
1
votes0
answers313
viewsHow to reverse a git reset hard
I have a folder on my machine, which when I update I commit to Github. It turns out I made some good changes, and went to commit. I did: git add -A git commit -m "..." git push -u origin master Only…
-
1
votes3
answers14398
viewsHow do I create a folder inside my Github repository?
How I create a folder in my repository so I can organize my files and not leave everything in the same repository folder on Github? this can be done by creating the folder using the command line or…
-
1
votes2
answers376
viewsHow to rename a remote and same local branch from the remote?
Which command should be used to rename a branch and update its name branch local?
gitasked 4 years, 8 months ago Lucas Emanuel 685 -
1
votes0
answers213
viewsError trying to push a commit
I’m new to git through the terminal, I’m facing the following problem and I can’t force it. Does anyone know how I can proceed to correct this error? $ git push stdin: is not a tty Counting objects:…
gitasked 4 years, 8 months ago Richard Aguiar 19 -
1
votes1
answer97
viewsHow do I create a new zeroed submodule in git?
What’s the most practical way to create a new, empty submodule in git? Whenever I need to I’m having to create outside to then checkout with a url. Do you have any more direct way with one or a few…
-
1
votes0
answers217
viewsGit - Error 403
Good night to you all. I’m having a problem that I can’t give the "push" command to git bash. Always gives the "requested URL returned error:403", I searched and found a solution that I tested which…
-
1
votes0
answers82
viewsIs there a way to delete comments from a github commit?
Is there any way to delete a comment from a commit? Or is there an invisible file that saves those comments and logs? (either in the files of the pc or in the repository on the website). It can be…
-
1
votes1
answer146
viewsRecover a branch in Git
I checked out an old commit from an application and the following message appeared: You are in 'Detached HEAD' state. You can look Around, make experimental changes and commit them, and you can…
gitasked 4 years, 3 months ago Rafael Costa 374 -
1
votes1
answer99
viewsIs it possible to create a remote repository on github through the terminal?
Save it, guys. I’m having a doubt that I’m not finding the answer or I’m not knowing how to look. Next, I just got into this programming universe and I’m learning git. But I came across a "weakness"…
-
1
votes1
answer69
viewsGIT FLOW How do I keep files in the master branch and develop and the release do not merge by deleting?
I have 3 format files. yml that I need them to always be on the master branch because it is they who run the automatic system post, but these files cannot be on the develop branch. So I went and…
-
1
votes1
answer43
viewsHow to create and maintain a separate repository for the subfolder of another repository?
Currently, I have a git repository with multiple folders, for example: /pasta1 /pasta1/subpasta1-1 /pasta1/subpasta1-2 /pasta2 /pasta2/subpasta2-1 /pasta2/subpasta2-2 /pasta3 /pasta3/subpasta3-1…
-
1
votes1
answer43
viewsRemove commits from a repository
I needed some way to remove commits from a Fork mine from a repository and leave only the selected ones. I’ve tried to use git rebase, as suggested on several topics, but unsuccessfully, the changes…
-
1
votes0
answers31
viewshow to return a commit without loading the changes
# tentando reverter commits sem carregar alterações # I am trying to apprehend will use HTML2CANVAS,html2canvas is an html library used to capture the visible part of web sites made in html. for a…
-
1
votes0
answers40
viewsVersion control before 1990
I’m studying about version control through the book Controlling Versions with Git and Github (Code House). At the beginning of the book the authors say that pre-git, in the mid-90s, there were…
-
1
votes1
answer74
viewsHow do I delete a commit in the Github remote repository?
I had never been in this situation, I have a public repository on Github and I need to delete the last 5 commits I did, both from the location and the remote that appears to everyone on Github. How…
-
1
votes1
answer25
viewsGit project with two separate folders
Hello, today I have a web project. The public data inside the folder "public_html/": public_html/projeto-publico/ and another folder with sensitive files ("project-backend") is outside…
-
1
votes0
answers23
viewsWhy does Openssh only open when I cancel the git push command?
Operating system: Windows 11 Git version: 2.32.0.windows.1 I’m trying to push into a private repository on Github using Git Bash, but nothing happens. I use the command line git push origin main,…
-
0
votes2
answers1154
viewsGit (and git bash) does not work on Windows 8
I’m using the tool Git for version control, I use Windows 8 and msysgit, after I have installed, the tool worked well, but soon after, the Git Bash no longer works, as if there were some problem on…
-
0
votes1
answer34
views"Terminated" message with git add wp-content/
I’m getting a message when adding the folder wp-content in git. Commando: $ git add wp-content/ Answer: Terminated What could it be? I tried $ git add wp-content/ -f, but I still get the message.…
gitasked 10 years, 4 months ago morphinduction 473 -
0
votes1
answer1146
viewsHow do I access a default path?
How to make Git 2.1.0 Windows access a default path (example: projetos wamp/www), in previous versions I made it easy, Git>Propiedades>Iniciar in: C:/wamp/www... and ready. I did it in this…
-
0
votes1
answer670
viewsUsing Dropbox as a repository for Netbeans 8 projects on Windows
I am using Netbeans 8 in my projects and would very much like to use Dropbox as a versioner. I set up the repository in Dropbox but with the project directory in another way. I may be confusing…
-
0
votes1
answer69
views -
0
votes2
answers161
viewsVersion Control Help - GIT/ SVN
I joined a company that works with GIT, I worked with SVN, and I’m having some difficulties adapting to GIT. Then I would like to migrate to SVN, since the team are only two programmers. We have the…
-
0
votes1
answer525
viewsI can’t update a Ruby project on Heroku with Git
While trying to commit a few changes I made to my Ruby project and go up to Heroku, I got an error message. Inside the project folder in the terminal I executed the commands: $ git status $ git add…
-
0
votes0
answers493
viewsGitlab - I can no longer clone or pull from my repository
I have Gitlab on my Ubuntu server in production for 8 months. I can’t clone or pull from a repository (+/-400mb), but other smaller repositories work normally. I don’t even know where to start to…
-
0
votes1
answer2372
viewsGit/Github problem - large files
I’m having a little trouble creating and uploading a git repository. He tried to upload a file larger than 100.0MB and Github notified me of the restriction. However, I went to the folder and…
-
0
votes1
answer53
viewsHelp with GIT recovery
Staff I had performed a backup of my right /.git/ and zipped. However I had problems in this file , I was able to unzip but with errors. I wonder if you have a command to perform a FORCE for it to…
-
0
votes0
answers89
viewsMINGW32 Composer: command not found - windows 8
Hello, I installed git in windows 8 and I have a problem with "cmd" Composer works and MINGW32 that came in git appears the message "Composer: command not found" someone knows how I fix this? NOTE:…
-
0
votes1
answer156
viewsDifferences in Jenkins build?
I set up Jenkins to "build" a project from a git repository, I’m using Maven: Warning: JAVA_HOME Environment variable is not set. Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06;…
-
0
votes1
answer72
viewsHow do I resolve pull request with deleted branch (Unknown Repository)?
After being made a pull request removed the linked branch and the message unknown repository is presented. Is there any way to re-link this pull request a new branch or the only way is to redo the…
-
0
votes2
answers117
viewsShow source line author in Visual Studio (Git)
How do you (shortcut) show the author of that line on the left side of the code lines, which Git provides?
-
0
votes1
answer43
viewsHow to make the mavem always get the jar from the master branch
I have two projects managed by Maven. The first is Model. The Second Front End and Controll The model is a dependency of Frontend. I do this with the following dependency on the pom.xml of the…
-
0
votes1
answer156
viewsHow to ignore persistence.xml in gitignore?
I have a persistence file called persistence.xml in the paths: /git/meuRepositorio/Meuprojeto/src/main/Resources/META-INF/persistence.xml And I’d like to include you in .gitignore, I put that path…
-
0
votes1
answer288
viewsVersioning of Databases
Utilise Git + SourceTree for versioning and sharing the project with the other members of the team. But we have some problems related to the database. Is it possible to share it? Like commit in BD…
-
0
votes1
answer95
viewsGIT --Bare with existing files
I’m creating a git server repository, so the team can commit the changes directly to the server, but some files that are on this server should be uploaded when a user downloads the repository. Is it…
gitasked 8 years, 4 months ago Jorge Pedro 1 -
0
votes0
answers45
viewsError committing to Webstorm
Trying to commit a project to push brings the following message: what may be happening?…
-
0
votes1
answer116
viewsGit does not ignore certain subdirectories
I recently started a personal project for practice, and one of the things I wanted to do was to have the "src" folder containing the source of the project, but every time I tried to get some part of…
gitasked 8 years, 1 month ago Leonardo Santos Monteiro 35 -
0
votes1
answer19
viewsProfiling deposited in the Versioning Repository (Github)
I am doing some tests with an experimental code that makes count of cyclists in the bike lane, for these tests I am using the gprof and gcov that generate several analysis files, one of these…
-
0
votes1
answer579
viewsGit bug help me please
All the commands I give in git on my linux appears this error and I can’t finish the job please help me how to solve root@joao-pc:/home/joao# git status fatal: Not a git repository (or any of the…
gitasked 8 years, 1 month ago João Victor 11 -
0
votes1
answer459
viewsWifi connection problems and to install git in Ubuntu 16.04
I am a new Ubuntu 16.04 Laptop (I started yesterday!!). My PC is dual-boot with Windows 10. I have two problems and I’m already a little desperate... 1) Wifi does not work (I type the password and…