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
-
4
votes2
answers961
viewsBest practice for empty folders in . gitignore
Some people told me that the correct thing is to create an empty file and put inside each folder and set one .gitignore thus: /pasta/subpasta/* !/pasta/subpasta/.arquivovazio And other people told…
-
4
votes1
answer717
viewsHow to disable file mode (permission) in GIT?
I’m working with the GIT here at the company where I work, along with two more programmers. Every time I make one git pull, whose changes were sent by these two programmers, I always have trouble…
-
4
votes2
answers440
viewsHow to automate merge into git / github with hook or other tool?
I have a repository on Github and I created a Github page for that repository. So, every time I make changes to the branch master, I need to get into the branch gh-pages, make a git merge master and…
-
4
votes1
answer3439
viewsKnow how many times gitub project has been cloned
I have a small question to be resolved and I need to know if there is any way to identify how many times my project that is on github has been clonado.
-
4
votes3
answers297
viewsGit alias for the current branch name
In my work it is very common to switch between Feature branches and Stage/develop branches several times during the day. And many of these times I need to write or use a tab to complete the branch…
gitasked 8 years ago Ricardo Moraleida 4,005 -
4
votes1
answer68
viewsEcomerce maintenance environment - Prestashop
I took a service to support an e-commerce on the Prestashop platform. I found the environment configured this way: The main application files are in bitbucket. To do the maintenance, I change the…
-
4
votes2
answers2531
viewsInaccessible folder on github
I’m uploading my website to github. Commands I made: git init git remote origin master URL git add --all git commit -m "Primeiro Commit" git push origin master But git sends all files and folders to…
-
4
votes1
answer1944
viewsIs it possible to delete a folder inside a repository directly from the Github site without using Git?
Delete a folder inside a directory directly from the Github website without using Git? I’d like to delete a folder, but I don’t know if it’s possible without Git.
-
4
votes4
answers5886
viewsGit bash does not accept paste command
I wonder why git bash does not accept the Ctrl+V command. Every time I have to clone a repository on github I have to type in the whole url!
-
4
votes3
answers226
viewsDoubt in git usage
We’re migrating our version control from Subversion to Git. I’m finding the following problem, we have a large project with several developers, our flow uses the branches: Master, Develop and…
gitasked 7 years, 3 months ago Wagner Sorio 49 -
4
votes1
answer1302
viewsWhat does - - mean in git checkout?
When we use the git checkout nomedoarquivo what difference with git checkout -- nomedoarquivo? I don’t know what changes using that --?
-
4
votes0
answers73
viewsError opening git hub
Hello, when starting github, it shows me a screen with this error: error: inflate: data stream error (Unknown Compression method) error: Unable to unpack 54012a5c5cbe332cb2e1f18539085b14bc0d8542…
-
4
votes2
answers1000
viewsGit log command for all commits of a specific file
You can check git log for all commits of a specific file. I committed to a foo.txt file and now it no longer shows in git history. my command: git log foo.txt I want to search the all commits…
gitasked 6 years, 10 months ago Julio Henrique 4,352 -
4
votes1
answer460
viewsHow to install the Typescript Plugin in Sublime Text 3?
I am trying to install the plugin in Sublime Text 3, and for this I did the steps: I installed the GIT I executed the available commands here at the GIT terminal. I pressed Control+Shift+P to see if…
-
4
votes1
answer154
viewsWhat does this command mean in git " "?
I don’t like using commands without knowing the meaning, so would someone tell me what this command means in git: ^ ?
-
4
votes1
answer120
viewsWhat do these arguments mean in the "git-checkout" command?
I have the following command in Git to recover a file: git checkout (hash-commit)^ --(caminho-arquivo) In this command what the ^ and --?…
gitasked 6 years, 7 months ago Lucas Lima 773 -
4
votes2
answers1920
viewsHow to modify commits that were not pushed
I need to edit a commit message and add another file. I haven’t pushed the commit yet, there’s a way to fix it?
-
4
votes2
answers2079
viewsHow to get back to a point before merging into Github
Take a look at my commits chart: https://github.com/danieldspx/cni/network I took a dump here, I wanted to merge the Workspace branch with the master. The Workspace is the one that was more current,…
-
4
votes1
answer52
viewsPush a tag to the remote
I need to push to my remote repository a single tag, v0.0.1. I know there’s a git push --tags, but this command, as per your documentation, pushes all tags. What is the command to push a single tag…
gitasked 6 years, 5 months ago Jefferson Quesado 22,370 -
4
votes1
answer102
viewsDoubts about branchs structure and repositories
I’m starting to study and use DVCS (versioning programs: GIT, Mercurial). I tried to reassemble a folder structure using branches but the result was not as expected. I wanted to understand how the…
gitasked 6 years, 4 months ago hyperpixel 389 -
4
votes0
answers771
viewsfatal: does not appear to be a git Repository
I’m trying to set up a private Git repository on shared hosting via SSH. I do the whole process of configuring the keys etc,e giving git init in the repository but when I put git remote add deploy…
-
4
votes1
answer10088
viewsHow do I update the master branch from another branch?
I’m working on a branch calling for start/admin/status I want to bring all the changes that are in branch master because the project no longer has certain packages, how do I do this?…
gitasked 6 years, 2 months ago Romulo Sousa 569 -
4
votes1
answer4787
viewsHow do I create a project in Gitlab using git?
We can easily create a project on Gitlab and "sync it" by git: $ git clone [email protected]:user/teste.git But to do otherwise? Create folder and local project, and send as a "new" in the Gitlab?…
-
4
votes1
answer218
viewsHow does Git identify changing a file?
Example scenario I have the folder projetos on the server. On my local machine, where I have Git, I created a folder empresa, where I copied all the files from the folder projetos server. I did the…
-
4
votes1
answer89
viewsWhat is a loose object?
From time to time my versioning tool tells me there’s something loose in my branch. Fortunately the tool always tightens my loose ones, but it gets the curiosity. Why does Git loosen me objects?…
gitasked 5 years, 10 months ago Oralista de Sistemas 23,115 -
4
votes2
answers782
viewsHow to delete git branches that don’t exist on the remote
In my current project, I locally created several branches for local testing - all from master. Now, I have more than 20 local branches that don’t exist on the server. I wanted to clean up here, and…
-
4
votes2
answers8696
viewsError when pushing to Github
I need to perform a push of files from my machine to Github but I’m not getting. I leave below some lines of code that I used in cmd trying to accomplish the commit, push, git init and everything…
-
4
votes1
answer649
viewsHow to undo merge keeping changes made after
The branch feature had a merge of aleatorio. How to delete this merge by keeping changes made in feature, before and after the merge?…
-
4
votes1
answer121
viewsHow, using git in Windows, indicate that the file is allowed to run in Unix environments?
I’m using git in development, and I’m willing to put the project gradle to be executed in the IC. To execute the gradle, just give a ./gradlew to start the process. However, when calling this in my…
-
4
votes3
answers61
viewsHow to specify the files I want to add to the Stage area?
For example, I’m working on an x branch. I changed the following files 1,2,3,4. I checked the git status all right. So far so good! If I rotate the git add . will add the 04 files. How would you add…
gitasked 4 years, 10 months ago Sena Oliveira 364 -
4
votes2
answers245
viewsI can’t push in GIT repose
I have a GIT repository on an SSH server and when trying to push, the following happens: Counting objects: 16, done. Delta compression using up to 8 threads. Compressing objects: 100% (14/14), done.…
-
4
votes1
answer96
viewsIs it correct to read the Migrations files and the configuration file?
Files that make the database Migrations should be added in Git versioning? I am using Phinx and I have this doubt regarding the classes that represent the tables that are generated by this library.…
-
4
votes0
answers147
viewsHow to change the basis of a branch?
I have a branch derived from master, development, that never comes back to master. All the branchs of features are derivatives of development, but after tested and validated, are combined both with…
-
4
votes1
answer38
viewsHow to return only the last commit date?
I know if I use the remote git log I can see commit ids in my repository and if I use git rev-parse HEAD, I can see the name of the last commit. But I needed to return only the date information of…
-
3
votes2
answers10525
viewsHow do I remotely connect to Git
I already know what we use versioning for, how to do commits, add new files, logs, etc. but I would like to upload my files to the Github online repository, as I do to connect and upload my files?…
-
3
votes1
answer886
viewsGit checkout does not change local files/folders
I’m starting to get into GIT. And a problem came up. Apparently, the checkout was not altering the local files. Let me explain it better: My stream is simple, clone, change code, commit, push/pull,…
-
3
votes2
answers278
viewsStarting GIT from Terminal
I’m trying to give git init to the terminal and when I type in this command it accuses that the 'config' and '.git' folder already exists, etc. Also when I try to use git add * it takes time to add…
-
3
votes1
answer1642
viewsError clone with Git
When I try to clone a repository through Git Bash by command line it returns me this error, as in the image below: I’m on a corporate network, can it be the firewall blocking me? Has anyone ever…
-
3
votes1
answer418
viewsIs it possible to keep a branch with pending changes in Git?
Imagine I have a commit from a file in the master branch texte.txt. So I create a branch called teste2, I check it out and create a file called teste2.txt, but I don’t commit. If I give a git…
-
3
votes1
answer816
viewsGit aborting a checkout
I’m trying to branch out but the git is aborting the operation. I’m in the branch dev trying to get to the branch master : $ git checkout master Error: error: Your local changes to the following…
-
3
votes2
answers845
viewsList ignored files with git --assume change
I ignored some files in a git project and I just need to have control to know which ones were ignored or not. Will that at some point I need to change. I’ve tried all the commands below: 1116 git…
gitasked 10 years, 3 months ago Rafael Soufraz 491 -
3
votes2
answers146
viewsGIT error with Mac OS X: dyld: Lazy Symbol Binding failed: Symbol not found: _iconv_open
I’m trying to use GIT from the terminal (Mac OS X), but the following error is appearing: $ git help dyld: lazy symbol binding failed: Symbol not found: _iconv_open Referenced from:…
-
3
votes1
answer1022
viewsHow to use Github in Windows XP?
I’m starting out in the world of Github versioning. I’ve made this decision because there are two workstations I plan to use for programming. One of them is Windows 7 and the other is Windows XP.…
-
3
votes1
answer2666
viewsWorking with git in graphical mode in windows
I have git running on an internal network. I want to allow one of the stations to work on that server. I already managed the key on that station and added it to the server where git is. I already…
-
3
votes1
answer228
viewsHow to deploy without changing the contents of a folder on the server?
I’m new to the Nodejs and Git world, I’m trying to develop from a system where users upload images. Every time I do deploy from the app, users pictures are deleted from folder public/uploads/ How…
-
3
votes1
answer2527
viewsRemove local tag in Git
How do I delete a tag that was created locally in my git repository and has not yet been "pushada" Example: I created the tag v1.4.9, but I noticed I was in the wrong branch before I did git push. I…
-
3
votes1
answer965
viewsIs it possible to work with a local "community" repository in Git?
Imagine I have a remote repository on Github, but I’d also like to replicate it on a local server, thus allowing my team to work (and share code) even without remote access. And, for example, at the…
-
3
votes1
answer214
viewsWhat is the similar command in git to Intellij’s "git revert"?
How to reverse the state of a specific file via git commands? Similar to option git revert of Intellij where I select the files I want to revert. When I select all options in the git revert, lists…
-
3
votes2
answers92
viewsHow to take the signature of changed methods in a commit
So guys, I need to subscribe to all the methods that were changed in a commit, whether updated, removed or added. Example: In this commit The changed methods were: - br.ufrn.ase.Classe1.metodoB(int…
-
3
votes1
answer1423
viewsDeploy with GIT via FTP
I read several files that it is possible to deploy via FTP using GIT. I tried to follow a few of them but they were unsuccessful. I also know that there are websites that make all this deployment…