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
-
0
votes1
answer181
viewsHow to view Git statistics with Bitbucket?
I’ve already used the Github and the Gitlab for a long time. These platforms are rich in statistics, from user contributions, commit frequency, etc. But now I’m part of a Bitbucket, but I haven’t…
-
0
votes2
answers221
viewsCan you leave a commit only local?
The question may be kind of obvious or even confusing. But what I want to know is if there’s a way to leave a commit only local, for example. I’m working on a feature and such, did some important…
-
0
votes1
answer140
viewsQuestions git & github
I started using git recently for versioning and, like any self-respecting newbie, I’m still hooked on some features. Every time I commit a project and take it to the Github repository, the previous…
-
0
votes0
answers67
viewsProblem with git stash save --Keep-index and git pull
I’m trying to git pull on a server but it asks me to save the files and even using the "git stash save --Keep-index" command (it always worked) it doesn’t let me run git pull
-
0
votes1
answer979
viewsWhat’s the difference between git pull and git fetch?
If both commands carry code from the remote repository, can I use either? Is there a difference between using git pull and git fetch?
gitasked 5 years, 8 months ago Thiago Krempser 1,878 -
0
votes1
answer2907
viewsGit push origin master command returns error
$ git push origin master To https://github.com/MarcusVSouza/cursoGitAlura.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to…
gitasked 5 years, 8 months ago Marcus Souza 23 -
0
votes1
answer112
viewsGit Manage Branches
I’m looking to manage the new features branches. Currently I can see from Gitlab how many commits the branch is in front of or behind the project’s default branch. However I would like to know if…
-
0
votes1
answer76
viewsFix files not tracked or deleted in cloned repository
I cloned the branch of a project, upon completion some files unaccompanied by git and some with changes. Examples: Changes not staged for commit: (use "git add/rm <file>..." to update what…
gitasked 5 years, 8 months ago Igor Gabriel 530 -
0
votes0
answers30
viewsSharing a project without certain modules
I have a project in progress versioned, everything straight, with several modules and each module has several functionalities and I need to share the project with another team, but this team does…
-
0
votes1
answer408
viewsHow to Design Spring Boot?
I am doing a Spring Boot course but I believe I am versioning incorrectly, because I can not run the application after giving a git clone. I’m used to the versioning of Angular and Node, as it is…
-
0
votes1
answer109
viewsI cannot create a remote repository and I cannot pass the files from the local p/ remote
I already tried through cmd prompt as well. It didn’t work. I went to the folder with the cd command/file path. did git init, git add, git commit and git remote add origin url. It didn’t work when I…
-
0
votes1
answer551
viewsHow do I reverse a specific commit from master?
I need to reverse a specific commit that is remote. How do I do this?
-
0
votes1
answer213
viewsGit Bash runs NPM on Windows Prompt
I’m using the Git Bash to run my project developed with React. After I started using the Windows 10, when typing the command npm run dev a new Windows Prompt window opens for running the command,…
-
0
votes1
answer102
views"Git for windows" in English
After installing git for Windows, you can configure it to the English language? Just set the language variables to "LANG=pt_BR" (or others) does not work. Do you have to install an additional…
-
0
votes1
answer376
viewsGit: error 403 when committing - Fatal: access Unable
Good morning, everyone! The story is, I got the invitation to access a repository and I was able to clone it, so that’s okay, but when I went to commit he gave me 403: unable to access, I’m using…
-
0
votes2
answers100
viewsI can’t edit cloned git files on the PC
I have to do a job and put it in git with a friend, he already gave permission for my account to be a contributor. I cloned the project on my PC so I could program my share and send it to github…
-
0
votes0
answers54
viewsWorking with branchs in git
I have a problem understanding GIT, whether the "master" branch is used for production and the "Development" branch for staging. When I create a branch to work on a new Feature, create the "master"…
-
0
votes1
answer238
viewsLogin to Github via SSH
Good morning! When I just go to the server via SSH and run the command sss -t [email protected], it returns a message showing which user is logged in to that site. My question is how I log in with…
-
0
votes1
answer344
viewsGit - Merge only conflicted files
Good afternoon! Is there any way to merge between two branchs only in files with conflicts? I am in a situation where we work with Azure and when doing a Pull Request she notifies that there are…
gitasked 5 years, 5 months ago gabrielgrs 457 -
0
votes1
answer40
viewsProblems with git synchronization
My friend made a Fork in my code and to update the data both in his repository and in mine, we have to create two remote one for each repository and use push/pull in both. How to make it just a…
-
0
votes1
answer300
viewsProblems committing version on Github
I was doing maintenance on a work application, but at the time a version went up gave the following error: fatal: Not a git repository (or any of the parent directories): .git because the directory…
-
0
votes1
answer39
viewsGit - local file changes in remote repository
I have a settings file that exists in the remote repository and in place, with information for sending email. In my local environment, I need to modify it with my private email account settings for…
gitasked 5 years, 4 months ago Roberto Tavares 3 -
0
votes0
answers133
viewsError committing to Project. Visual Studio 2019
When committing in my project the following error came up attached below, I cannot identify what is causing it. I need help. I’ve uninstalled git install again, updated visual studio, but the error…
-
0
votes1
answer153
viewsgit origin/branch and git origin branch what’s the difference?
When I need to update the local repository, I usually run the command git pull or git pull origin/branch. The git pull origin/branch as far as I understand "pull" what you have on the remote branch…
gitasked 5 years, 4 months ago Ricardo Pontual 21,129 -
0
votes1
answer82
viewsOn the production server I use git as Fork or clone? what is the best structure for an active project?
my question is how best to use git on a production server. for example I have a project in git but I don’t know if it’s better to publish the project on the server via Fork via clone, if it’s nice…
-
0
votes0
answers26
viewsProblem with temporary visual studio changes
Hello, I am migrating from TFS to GIT, I have imported into the Archive itself from a new repository giving rise to my TFS project... Made the import, I opened the project in visual studio, but…
-
0
votes2
answers1348
viewserror while doing git push
I’m trying to upgrade a project to github but always q dou git push this error: error: src refspec master does not match any error: failed to push some refs to…
-
0
votes1
answer49
viewsHow do I work with git when there are problems with the production version?
I have an application in production that was working on a new module within a branch in my local repository, when I finished, and after testing, I did the Merger with the master I sent to the…
gitasked 5 years, 3 months ago Marcelo Roncatto 43 -
0
votes1
answer44
viewsFailure to push
When you push on my machine I received the following error : hint: Updates Were Rejected because the remote contains work that you do hint: not have locally. This is usually caused by Another…
gitasked 5 years, 3 months ago Marcelo Batista 1,617 -
0
votes1
answer50
viewsHow to view a whitelabel project?
Good morning guys, I’ve been working on git for a while, but I ran into a problem that I couldn’t find a solution that works. I have a "white label" project, which would go like this: It has a…
-
0
votes0
answers24
viewsHow to delete a commit already made in bitbucket
I would like to know how to delete a commit already done in bitbucket, I already pushed but just looking in the repository I found an error how to remove this change?
-
0
votes1
answer41
viewsRoutine backup of development files
Next: I work in a design office and am responsible for the development area. The office has a central server where all work files are hosted. However, to work with development, we cannot work…
-
0
votes1
answer73
viewsHow to use open cv with nodejs in production environment
I have an application developed in nodejs in which I use the opencv4nodejs which allows you to use the opencv library in nodejs. The application is ready on local server, but I have no idea how to…
-
0
votes0
answers17
viewshow to create an alias in Git for the "log --Pretty=oneline" command
As the title says, I need to create an alias for the "log Pretty=oneline command". I know of the existence of the advanced syntax of bash to do this, but I can’t learn it at the moment, for now I…
-
0
votes1
answer8960
viewsGIT PUSH --SET-UPSTREAM ORIGIN MASTER ERROR
I’m trying to make a git push, but this error always arises: $ git push fatal: The current branch master has no upstream branch. To push the current branch and set the remote as upstream, use git…
-
0
votes1
answer325
viewsHow to merge the two applications that are in a separate Gitlab?
I took a job where the staff has two versions. I’ll explain better: One company A transferred a client to another company B, both of IT. Company A passed a version and the backlogs to company B.…
-
0
votes1
answer40
viewsSERVER problem - lost my repository
I ask for help because I don’t know much about GIT and I’m afraid of causing major problems I had a git repository on a server, whose name was Project.git I controlled it by verse, every branch for…
-
0
votes0
answers87
viewsGit Push / Git clone does not work even after setting an SSH key correctly
Even if you correctly set an RSA-type SSH key, as described in: GIT LAB SSH, I did several tests and added a file config: Host gitlab.com Hostname gitlab.com IdentityFile ~/.ssh/gitlab I got it in…
-
0
votes1
answer38
viewsExcuir Gitlab Single Computer Repository
I need to delete the files downloaded from a repository of only one member remotely authorized, so that it no longer has access to the project, it is possible?
-
0
votes1
answer62
viewsdeletes a folder locally but can’t save the change remotely on github "Everything up-to-date"
deletes the folder, I used git add and commit, it detected the changes in the commit but still when I push the master it says it’s "Everything up-to-date" what I’m doing wrong ?…
-
0
votes0
answers56
viewsReverse git checkout -f
By giving a git checkout -f in a modified file is it possible to recover the lost changes? Some way to reverse git checkout -f
gitasked 5 years, 1 month ago Lucas Marinzeck 318 -
0
votes0
answers52
viewsChanges lost in merge
Guys, I merged wrong and all the new changes were lost. And the commit before the merge was two months ago. The sad question is: all the changes were permanently lost? Log commit d52ac4b.....3ccf2a…
gitasked 5 years, 1 month ago Ivan Silva 820 -
0
votes1
answer593
viewsHow do you git pull all branches?
I have several branches and doing two versions of a script, in separate branches on a development server. So how to update all branches, from clone, on production server?
gitasked 4 years, 11 months ago Márcio Mocellin 1,443 -
0
votes0
answers47
viewsIs this type of merge correct?
I’m doing the following method to administer my branchs, but I don’t know if it’s the right one: I create a branch with git branch -b newbranch and fix the changes. So when I do an update I simply…
-
0
votes3
answers919
viewsGIT: I can’t send my files to Github
I’m not making it send my files to Github. I am following the following steps: use the git init git add . git commit -m 'primeiro teste' git config --global user.name nome git config --global…
-
0
votes1
answer190
viewsGit Commits are not updating
I created a repository on Github and so far everything perfect, at first I gave a commit just for testing. git add -A git commit -a -m "Original" And so far perfect. So I made several changes to the…
-
0
votes1
answer304
viewsHow can I undo these 3 commits?
$ git status Refresh index: 100% (16/16), done. On branch master Your branch is Ahead of 'origin/master' by 3 commits. (use "git push" to Publish your local commits) Changes not staged for commit:…
-
0
votes1
answer148
views.gitignore being automatically created by Eclipse IDE
Every time I create a new Java project in Eclipse .gitignore is created with the information /bin/ within the same. Can anyone tell me if it is possible for me to configure the IDE not to create it…
-
0
votes1
answer100
viewsRevert a commit that hasn’t been pushed yet, and with multiple comits waiting to get pushed
In one of the commits that I performed I included a folder with several files that total about 5gB, trying to push the same commit occurred an error (fatal: The remote end hung up unexpectedly), and…
-
0
votes2
answers235
viewsCode of some branchs disappeared after merge
I have a very strange situation (probably vacilo right...) here in my repository. I have a branch of DEV and several other of Features and bugs. With each branch of Feature or bug, we merge with…