Questions tagged as 'git'

2
answers

.gitignore delete all folders except one

I need to make a .gitignore delete all the folders except one. Example: Library/nao_ignorar Library/ignorar Library/ignorar Library/ignorar ....     
asked by 07.12.2014 / 03:52
1
answer

Creation of two projects in single Git repository

I am creating a project in Java web and want to create another project in Android. But I would like to create just one repository and within it own these two projects with their respective commits trees, as if they were separate components. I...
asked by 07.10.2015 / 04:39
2
answers

How to delete commit from a branch in Git?

How can I delete commit from a branch ? I made an attempt to delete a commit that I did not want, but I ended up making the situation even worse. I'm afraid to do something wrong. Git tells me to use git reset --hard HEAD , but...
asked by 15.05.2016 / 02:27
3
answers

GIT, showing the branches on the bitbucket tree

Hello! I've been searching for days and found no information that helps me. My problem is with displaying the tree of commits and branchs on bitbucket. I create a branch from the master git checkout -b develop I am doing the commits...
asked by 28.06.2016 / 09:07
2
answers

Store credentials from a Git repository on Windows without SSH

How to configure Git in a local repository so that you do not ask for the login and password every time you make a push or pull? My Git server does not support SSH. HTTP only. I have only the username and the password user in Git.     
asked by 26.11.2015 / 19:24
1
answer

How not to ignore directories with the same name?

I have the following structure: nbproject public_html build index.min.html style.min.css index.html style.html build dist My .gitignore to ignore the Netbeans configuration files looks like this: nbproject/ nbp...
asked by 21.12.2014 / 14:05
3
answers

bitbucket - doubt about workflow, branchs and merge

I and my team started working with git for version control (late I know), and we use bitbucket as a remote repository (because it allows free private repository). Well, I have some doubts about the workflow. The programmer is working on th...
asked by 21.01.2015 / 19:39
1
answer

How do I delete a file from all commits?

On my first commit I sent a binary file that has no reason to stay. And I sent a configuration file with real passwords. I changed the password to a fake, I deleted the binary, but if I go back to an old commit the data is still there. I did...
asked by 13.06.2018 / 19:48
3
answers

Is it possible to perform git bash scrolling?

I just installed git and opted to install git bash (command line tool) together, to use all git commands for it. However, I noticed that mouse scrolling does not work at this prompt. Has anyone ever experienced this? I'm usi...
asked by 16.02.2014 / 17:39
2
answers

How to create an alias to execute multiple commands with git?

I would like to know how to create an alias for git that runs the following commands: git add (all modified files) git commit (including a message) git push I tried the following configuration in gitconfig: [alias] upl = !git add...
asked by 08.02.2017 / 15:40