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
votes1
answer59
viewsMigrating from svn to git: tags get a@with a number at the end of the tag. What can it be?
I have a question. I cloned the project with git svn clone. I used the git remote add +url to add the remote repository. When I am doing the git push --tags git tags are going in a different format…
gitasked 6 years, 5 months ago WeltonSistemas 75 -
3
votes2
answers2051
viewsAuthentication error sending file to repository on Github
Well, I followed that one link, but when I get to git push -u origin master it asks for the git user and password in a windows Forms, then asks the user (2 line), and asks for the SSH password and I…
-
3
votes2
answers316
viewsGIT no new or changed files remote location
Good afternoon to all I set up a git server to centralize projects and upload the changes to remote servers, but I can’t push new files or changes to the client server, I made the settings as…
-
3
votes1
answer649
viewsDiff between two commits
I’m making a git diff between two commits and in general it shows me the difference between the files that were modified in these commits. EX: git diff 1a1a1a 4d4d4d + Essa linha foi adicionada -…
-
3
votes1
answer433
viewsGit: What are the possible streams for two development environments?
I’m setting up a development environment with Git in some of my projects, my initial idea for simple projects is: The master branch is blocked when someone needs to perform change is created a new…
-
3
votes1
answer465
viewsWhat is this information next to the commit ID?
What does this information in red next to the commit ID mean? I realized that only in this commit is this. No branch, this log is in master.…
gitasked 6 years ago Allan Dantas 359 -
3
votes1
answer3444
views.gitignore com . env
I added a . env to my .gitignore. file. But when I change something in . env, the changes are going up together in the commit. Follow my . gitignore: # Logs logs *.log npm-debug.log* yarn-debug.log*…
gitasked 6 years ago Guilherme Nass 939 -
3
votes2
answers162
viewsHow do I set up Git to ignore trivial changes (for example, file timestamp) in a file?
The problem I’m facing is this:: The C application has an option where the build date of the application is displayed. To prevent the developer from managing the application before the current day…
-
3
votes1
answer330
viewsIs it possible to delete a repository on Github using Git codes?
I have a repository on Github that’s public and it has 33 commits, but I no longer have access to Github’s email and password (so I can’t delete the repository from Github), but I still have access…
-
3
votes3
answers464
viewsDeleting files on Github after push
I created my first repository to study on git and github, did my first commits and pushes in the remote repository, and only then did I realize that I had a file I didn’t want, how do I get it out…
-
3
votes1
answer77
viewsCan you create variable in git?
wanted to know if it is possible to create a variable in git to save the directories. if I just type a word or something and it automatically goes to the saved directory and such
-
3
votes1
answer167
viewsGit - Pull/Push with different repositories
I have a project that sends to 2 repositories at the same time using the same remote, example: [remote "origin"] url = https://gitlab.com/teste.git url = http://bitbucket.org/teste.git In this type…
-
3
votes1
answer516
viewsHow to solve "Clean your tree for work"?
Me and the team I’m with, we work with GIT + Visual Studio Code... When we touch the same file, when we commit/pull the files, the following error occurs: There is some way to solve this, because…
-
3
votes3
answers2619
viewsVscode + GIT + Flutter Configuration
Sirs, I am starting the studies in Flutter, I did the installation of Flutter, Dart, GIT and Vscode, when I will start the development Vscode returns me the following error: [undefined] flutter…
-
3
votes1
answer57
viewsGithub Collaborators deleting Branchs
On Github how do I set up so that my project’s collaborators do not delete the branchs? There is no restriction to delete in the project’s Settings. Thank you
-
3
votes1
answer1275
viewsError 403 github
I created a new Github account and when I try to give a git push -u origin master it returns an error saying that I am not allowed to access that repository. It appears as if my old account was…
-
3
votes1
answer225
viewsI have a problem with my Github repository - Empty directories
I have a problem after submitting my project on Github, which contains two directories. However, after sending and committing, the repository on Github gets empty folders and a little arrow. This…
-
3
votes1
answer622
viewsHow to reverse git push --force?
I made a git push --force, but I wish I had git push --force-with-lease it is possible to reverse this?
-
3
votes1
answer44
viewsDo I lose commit history if I switch to remote branch?
If I change the Git remote I end up losing commit history to the new remote?
-
3
votes1
answer318
viewsHow do I update all files from a GIT repository except one specific one?
Using git, you can create the file .gitignore, not to send specific files during the git push origin. I would like to perform the reverse, upload all files except one specific file. I checked the…
gitasked 4 years, 1 month ago Vitor Subhi 1,018 -
3
votes2
answers65
viewsFile does not appear for comitt in Smartgit
I have a persistence.xml file that is the default application, but each developer uses a different one and always has one that comita this persistence unintentionally. I was wondering if there’s a…
gitasked 4 years ago Julio Cesar Stein 33 -
3
votes1
answer667
viewsWhat does the "git branch -M" main command do?
I’m creating a new repository and Github gives me the option to use the command: git branch -M main What does he do ?
-
3
votes1
answer119
viewsDifference between merge to Pick Herry?
What’s the difference between git Cherry-pick and git merge According to the definition in git itself git-Cherry-pick - Apply the changes introduced by some existing commits git-merge - Join two or…
gitasked 4 years ago mariele fontana 33 -
3
votes1
answer677
viewsWhat does Please Tell me who you are in git mean?
I am totally new in this area of technology, I am following a course but I stopped. When I try to give a git commit -m "commit inicial" the string message in git is this: Author identity unknown ***…
-
3
votes0
answers99
viewsHow to hide files on Github?
I want to make some of my Github projects public, but some of their files contain sensitive information (such as database access passwords). It is possible to leave these specific files hidden so…
-
2
votes2
answers182
viewsShould old tags and branches be deleted from the remote repository?
One of the main products of my company already has about 4 years of life. In the meantime many branches and tags have been created, and the repository has been migrated from SVN to GIT. Because of…
gitasked 10 years, 8 months ago Rodrigo Rigotti 12,139 -
2
votes2
answers155
viewsQuestions about using Git
I created a new project on Github and then tried to give the git push to upload the files that were on my machine. I did the basic procedures necessary (think) to work, but is giving error of failed…
-
2
votes1
answer1512
viewsSynchronize Bitbucket with Web Server
Is it possible to synchronize my project in Bitbucket with my web server? Instead of sending the project via FTP, it would be synchronized with my Bitbucket repository without having to send the…
-
2
votes4
answers21058
viewsHow to push local folder to Github
I would like to push a local repository to my Github. I did the standard procedure for this: git clone <chave ssh> Until then everything wonderful, he created a copy of the Gihub repository…
-
2
votes1
answer313
viewsCertified problems using GIT in https
The GIT repositories I’m accessing are now only available in HTTPS. However when I try to access the repository, I get the following error: git -c diff.mnemonicprefix=false -c core.quotepath=false…
-
2
votes1
answer264
viewsFind commit in which file was deleted
I have a project in Git. I need to retrieve a file that was deleted several months ago. If it were something that was now in the repository it would be trivial to find it, see its history and…
gitasked 10 years ago Oralista de Sistemas 23,115 -
2
votes2
answers377
viewsGenerate diff patch between two branchs
I have to generate a patch of the changes I made. The problem is that I have 2 branchs and I have to generate the patch of the Branch2 files relative to the Branch1 diff (which is where the original…
-
2
votes1
answer111
viewsPhpstorm - How to create a Patch file by skipping whitespace
I can generate a patch file with the changes to be commited in git. How can I generate this Patch file by ignoring whitespace just like I do on the View Changes screen? Some old files have tabs…
-
2
votes1
answer258
viewsIs it possible to include database versioning in the commit (GIT)?
I wonder if it is possible to versioning the database (in my case Mysql) through GIT, or if there is some other effective way to do it.
-
2
votes2
answers53
viewsCheck if directory is a repository with Libgit2sharp (C#)
I’m starting to study C# so my knowledge is very limited. I’m using the library LibGit2Sharp and I would like to check if an informed directory is a repository. Their documentation is not yet…
-
2
votes1
answer397
viewsWhich files should be inserted into . gitignore in a Rails project?
I’m starting in Git and also in Ruby on Rails. I created a new project using rails new myapp -d mysql and added to my Github repository. When creating the project Rails generates multiple files. So…
-
2
votes1
answer229
viewsImport netbeans projects from Github into Eclipse Luna
My teacher has a github where he sends all the material produced in the room, however, he uses netbeans... I wonder if I can import these projects in Eclipse? I use Egit in Eclipse.
-
2
votes1
answer2456
viewsUpdate files after deploying to Heroku
I deployed my Node.js application to Heroku for the first time and it is working perfectly. However, I edited a file and I need to update it, how can I do this? Should I use git push heroku master…
-
2
votes2
answers757
viewsHow to deploy with Wordpress
I want to increase the agility of my projects made with Wordpress. I usually use the git just in the themes. When everything is ready, I raise the theme in the traditional way, by FTP. Of course, I…
-
2
votes0
answers808
viewsComposer SSL3_GET_SERVER_CERTIFICATE:Certificate Verify failed
I work in a public body and here the access is very restricted. I have been facing problems when trying to run "Composer install" or "Composer update", this also goes for pro NPM or Bower. Follow…
-
2
votes2
answers275
viewsAvoid pushing a specific branch to the wrong remote
Hello, Can anyone instruct me on how to avoid screwing up with git? At next aspect: I have a project with 2 "remotes" configured (imagine one of the company - company - and other private - service).…
-
2
votes2
answers3954
viewsHow to list all remote repositories in Git?
How to get a list of all remote repositories associated with a local Git repository?
-
2
votes3
answers458
viewsHow do I list all the files not added (untracked files) in GIT?
How do I list all the files not added in the commit on git? It would be important to have this listing so I know when to make one git add in specific files. Observing: I use the git from the command…
gitasked 9 years, 3 months ago Wallace Maxters 102,340 -
2
votes1
answer545
viewsSkipping git folder inside the repository
How do I ignore folders . git/ and . gitignore within my project? I’m having problems cloning external vendors in my project because of this, every time I clone/download some dependency with Poser…
-
2
votes1
answer336
viewsGit merge did not go as expected
Hello, I will try to be very practical in this my problem. 1 - Working on the 'fix' branch I ended up making changes to different things by mixing things up... 2 - Dai to try to 'improve' created a…
-
2
votes1
answer1677
viewsHow to create a clean branch without taking the master branch history?
I need to create a clean branch that doesn’t reflect the master branch commits. This branch will be used to provide information about the project on Github through Gh-pages and will never be used to…
-
2
votes1
answer1491
viewsChange repository linked with android project in Git
Good morning, I created a project in Android Studio, created a repository in Git, did the Share of my project in my repository. Now, I’d like to switch repositories, take this project of mine that’s…
-
2
votes0
answers269
viewsUpdate files from multiple servers automatically with git
I have a system that is used by several clients and each has its own server, most of them linux. I would like to update the files via git automatically, can anyone tell me if it’s possible? I…
-
2
votes1
answer138
viewsError while using Git on Ubuntu
So, I am currently using the Ubuntu 15.04 operating system to develop my daily activities. I have a PHP web project where I use the Cakephp 3 Framework and version my project in Bitbucket. My…
-
2
votes2
answers635
viewsHow do I change the content of a file within an old commit in Git?
I have a file that has undergone three changes and commits have been made for each change, I want to change the contents manually of the first commit to correct an unauthorized mention. Is it…
gitasked 9 years, 1 month ago Bruno Wego 1,568