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
-
3
votes2
answers303
viewsEdit local files without committing
In a project there are some files that need editing to run the local server, such as .htaccess, config.php, among others. In the branch master, We keep these files with the data in production. There…
-
3
votes4
answers5695
viewsGet list of changed files in working directory (Working directory)
When the command is executed git diff in the terminal opens a window that shows the contents of the files with their changes. From there I can know which files have been changed. The problem with…
gitasked 9 years, 6 months ago Geison Santos 4,428 -
3
votes2
answers911
viewsWhich plugin do I use to commit on Github using Pycharm?
I’m a beginner in Python and would like to know which plugin is required to commit on Github using Pycharm.
-
3
votes1
answer96
viewsGerrit + Gitlab
Good afternoon, I would like to know if anyone has ever integrated Gerrit with gitlab, I have been researching and found some possible ways to know which one would be more appropriate, using…
gitasked 9 years, 6 months ago William Witter da Silva 168 -
3
votes1
answer1562
viewsHow to find conflicting files in GIT?
Let’s say I just made one git pull. Then, for some movement I closed the Terminal (In the Ubuntu, for example) and I haven’t seen which files are marked as CONFLICT. I already learned in a way where…
gitasked 9 years, 4 months ago Wallace Maxters 102,340 -
3
votes0
answers135
viewsWhat does this git error mean?
I’m migrating a git repository from the server. I’m taking it out of my VPS and moving it to Bitbucket. I took all the VPS branches and successfully climbed to the mentioned service. I even added a…
-
3
votes1
answer3088
viewsBack repository to previous state
I have a project that we use GIT for versioning. However, one of the programmers uploaded a wrong version to the remote server, gave commit, push and several commits and pushs. Then the site gave…
-
3
votes2
answers215
viewsHow to maintain a local file that is in conflict with the repository?
It is possible, when executing git pull, inform Git not to overwrite a local file that is in conflict with the repository? If so, how to do it? The file in question is already in the repository. It…
-
3
votes1
answer1145
viewsNetbeans + Github = git-receive-pack not permitted
I am using git to take control of a college project, we are using netbeans+eclipse and a friend who participates in the project sent me the git link, I cloned the project, but I can’t push in…
-
3
votes1
answer3555
viewsSpecific commit merge
I’m currently working on an SCM migration in my company, we’re moving from CVS to Git, but the code in CVS was versioned in a different way, each branch is a different code-base, so, I’d like to…
-
3
votes1
answer96
viewsIs it possible to raise desktop projects on Github?
Can I develop my desktop programs and lift to Github, and work that way with versioning my program with Git? Or can I only raise web projects for Github?
-
3
votes1
answer183
viewsGIT does not push
Guys, I don’t know what’s going on with my git, I’ve uninstalled and installed and nothing! Every time I push a push occurs the following... $ git clone https://[...]/projeto.git $ git checkout -b…
-
3
votes2
answers331
viewsIs there any way to change a file from a tag?
I have a small problem in my repository: A tag file 1.0.0 and 1.1.0 need to be changed. On github I realized that there is no such option as editing when you select a tag. But is there any way to…
-
3
votes2
answers21812
viewsI executed merge command on wrong branch as undo
In my project contain 2 branch a work and a master, today after a long time I went up the version of the project, but at the time of running the merge I ended up doing it in the wrong branch, only…
-
3
votes2
answers57
viewsHow do I add files that were uploaded to the git repository?
I have a system where it is possible to add extensions and plugins via web interface by uploading a file .zip. That file .zip is unzipped by the system and the files go to a specific server folder.…
-
3
votes1
answer59
viewsHow to recover data from php terminal?
Example, I have this command following in a php file: <?php $imprimir = shell_exec("cd /home/afonso/Documentos/teste; git add arquivo.txt; git commit -m 'testando'; git push -u origin master");…
-
3
votes2
answers7576
viewsWhat is the best way to undo a merge with staged and modfy elements with conflicts?
I did an unnecessary merge with a branch, now I have several elements in staged and not merged because of conflicts. What’s the best way to reverse this merge and leave the branch in the last commit…
gitasked 8 years, 10 months ago Rafael Caetano da Silva 69 -
3
votes2
answers1100
viewsGIT - "import" content from another branch
My question is this:: I have a repository called "site-layout" with only the master branch, where I develop a layout with bootstrap v4. I still have another repository called "site-old" also only…
-
3
votes1
answer625
viewsWhat is the purpose of git update-index?
I was facing issues with folders, which should have been ignored in the repository, but they weren’t even when I put in .gitignore, and I’ve done a lot of research to solve the problem. Among…
gitasked 8 years, 9 months ago Wallace Maxters 102,340 -
3
votes1
answer2328
viewsHow to delete an old Git commit?
guys, earlier I was playing some stuff in git and unintentionally copied a folder with a file inside and commited locally, then I deleted it and committed the deletion locally, I was developing what…
-
3
votes1
answer479
viewsI update index.html and delete files, but github does not update
I started a project on Github (I’m starting with it now), and everything was working perfectly. All of a sudden, he stopped updating. I, within the Github site itself, delete files, change the…
-
3
votes2
answers351
viewsIdentify differences between two similar projects
I have two projects in PHP: one is a store in Rio, and another is the store in São Paulo. Basically, the SP is at the root, and the Rio is "almost" as a clone of the SP project. Each project is…
-
3
votes0
answers189
viewsHow to clone a git repository (BARE) from a Windows7 folder to UBUNTU16.04?
My host system is Windows7 and I have a guest system in virtualbox, Ubuntu 16.04. I shared a folder on Win7 (sf_AA_SHARE_FOLDER) into linux and into it I have another folder called CHM_FINAL_BARE…
-
3
votes1
answer190
viewsWhen should I wear a patch?
One of the features of git is the use of patches. When a patch should be used? I read that patches were designed for Hotfixes. However, I can’t understand why I would patch instead of just push the…
-
3
votes1
answer58
viewsbranching a branch from a particular commit and migrating subshot commits
I was updating a repository, creating its documentation, so I created a new branch called master-guibook a ". /Docs" directory and a "book.json" file at the root of the project, so I opened the…
-
3
votes1
answer163
viewserror in cloning bitbucket repository by ssh
I followed the steps of that website in order to access Bitbucket via SSH on Ubuntu. However when I finished and tried to clone a repository the terminal printed this error: Warning: Permanently…
-
3
votes1
answer171
viewsGIT - Isolate new Feature from the master branch in a new branch and reset the master branch.
I created a new Feature in the master branch and would like to isolate it in a new branch. Also, after creating the new branch, I’d like to reset my local master branch to the remote master branch.…
-
3
votes2
answers818
viewsIs it possible to change the order of the commits on my branch?
I wonder if there’s a way I can change the commit orders on my branch. Reason: I made a huge commit, with low changes and great importance to the system (which can kill the system), and now I want…
gitasked 8 years ago fernandoocf 1,095 -
3
votes2
answers3580
viewsHow to sync github?
I made some changes to a project of mine that was on Github, now I want to synchronize it with my local repository and continue editing, how do I do this?
-
3
votes1
answer281
viewsFind out which branch has a certain tag - Git
I have a repository with several branches, and each branch has several tags. I want to find out which branch has a certain "name_da_tag". How can I do that?
gitasked 7 years, 10 months ago ldeoliveira 2,015 -
3
votes3
answers447
viewsHow to disable the merge message in git pull?
Every time I git pull, git opens the text editor requesting a message for the merge commit. However this message is already loaded (as in the example below) and I simply save and close the window to…
gitasked 7 years, 8 months ago Murillo Goulart 3,391 -
3
votes2
answers14542
viewsHow to ignore Folders/Directories in GIT? Ex: . Metadata , . recommenders
I have a project in . git in which I believe it is necessary to ignore some files. However, I put the command and the folder keeps appearing in git status. I did it the following way: creating…
-
3
votes3
answers621
viewsHow to clone the repository and all the arms of the remote?
I would like to know how to automatically clone all the remote arms to the location, without having to be doing the command below for each. git checkout -b <branch>…
gitasked 7 years, 6 months ago Tássio Auad 1,482 -
3
votes4
answers1531
viewsAdding my files to Github
When I started my project, I put all my files on Github correctly, but with the modifications I made I forgot to update the files in git. Now I need to pass all the files to Github, as I’m starting…
-
3
votes1
answer3315
viewsRevert a git reset hard
I did some wrong things while doing some testing and deleted all my files both on site and on github, as I do to reverse and not lose everything? the commandos I used and I believe that was what…
gitasked 7 years, 5 months ago user27585 -
3
votes1
answer656
viewsHow to structure multiple projects in Git
At the company where I work, we use Visual Studio 2013 and TFVC for versioning the projects. I’m used to the Source Control Explorer, be able to give Get Latest Version at any level (the entire…
-
3
votes1
answer74
viewsHow to get only one git log result between the given range?
How can I filter only a single commint from git log ? Example: git log --after=2017-10-02T13:40:56 With this I get all commits after that date, how can I get only the first commit after that date ?…
gitasked 7 years, 2 months ago user73316 -
3
votes2
answers343
viewsHow to clone a second branch using the same directory as the first cloned branch?
I have a repository with several branches, cloned a specific one and worked on it. Later the need to work on another branch of this same project arose, has how to clone it to the same folder of the…
gitasked 7 years, 2 months ago David Santos 810 -
3
votes2
answers2516
viewsWhat’s the difference between Team Foundation Service and Git?
I want to know the difference between Git and TFS, because I don’t understand if the two are version control systems or just Git is a version control system while TFS is a web application to host…
-
3
votes1
answer2437
viewsThe git push command is not working after removing a commit
I needed to reverse a commit and locally it works well. Now when I push to my repository, it presents me with error. My attempt git fetch origin c6f1668e2fac57401a99a2184a47f0b58c15e403 git reset…
-
3
votes0
answers42
viewsWithout wanting to reverti (undo) , how to advance the front?
I was doing a reversal of a version, but unintentionally pressed 2 times undo in git dekstop, but the files I created before all went to space. Lot of logic and time lost. There is the possibility…
-
3
votes1
answer576
viewsHow to pull files from the repository without generating merge commit?
How can I get new files from the repository without committing Merge branch 'master' of...? I’m using: git pull It pulls everything cool, however, creates this merge commit. How do I only have…
-
3
votes1
answer1082
viewsHow to access an earlier version and then go back to the latest git checkout
The question is simple: Imagine that I have 10 versions. I used the git checkout on Friday to quickly analyze a line. How can I return to the latest version if her ID is missing from mine git log?…
-
3
votes1
answer129
viewsError pushing on gitbash
Is showing the following error in the git bash: $ git push -u origin master Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access…
-
3
votes1
answer292
viewsIgnoring files in git that don’t have an extension
Programming in C++ for Linux, when compiling code with g++, three files are generated: file. the filing cabinet the latter, in this system, is the binary executable generated by cpp. If I wanted to…
gitasked 6 years, 8 months ago Leonardo Braz 31 -
3
votes1
answer790
viewsHow to do Semantic Versioning (Semver) with GIT?
One question that I’ve always had and gives me a lot of headache is about how I should do Semantic Versioning with GIT. I should take into consideration the commit, one "release" of the project, or…
-
3
votes1
answer131
views.gitignore for multi projects - Visual Studio
Setting I have a versioned project on github, put together a file .gitignore to make the project lighter and not to unnecessarily restore files, but I’m not succeeding. Note that my file .gitignore…
-
3
votes2
answers3350
viewsJoin multiple commits from a branch
I have the following situation: I created a branch, for which I made several commits, I pushed to github, now I intended to join these commits, which are already on github in one, so that they don’t…
-
3
votes1
answer179
viewsHow to work with GIT correctly?
I am starting a team project and my question is whether the order I am following is correct when working with the GIT. I run git pull origin master //Aqui baixo os arquivos mais recentes do projeto…
gitasked 6 years, 7 months ago Mike Otharan 896 -
3
votes1
answer311
viewsError in git repository:
It looks like I did something stupid with the underlying Git repository and was broken, leaving it invalid. Error: error: pathspec 'Development' Did not match any file(s) known to git. I used these…