Questions tagged as 'git'

1
answer

Make a file from the vendor folder

My vendor folder is by default skipped and I know this is the right one, but it happens that I need to commit a specific file that is in that folder, would it have? If not, what other solution can I adopt?     
asked by 26.09.2016 / 16:15
1
answer

Error: "update were reject because the remote work that you do not have locally"

I'm trying to store a project for GitHub by git, but when I use the command: git push oringin master Displays this message:    Updates were reject because the remote work that you do not have locally. This is usually caused by another re...
asked by 27.03.2016 / 03:59
1
answer

How do I store passwords in environment variables (and remove them from version control)?

I'm migrating from a local tfs to a private git (probably bitbucket). Today I simply encrypt webconfig, now I will have to get my sensitive version control data (connection string, passwords, etc.). How do you do? Environment Variables? As...
asked by 18.07.2016 / 19:58
1
answer

What is the best way to undo a merge with elements in staged and modfy with conflicts?

I made an unnecessary merge with a branch, now I have several elements in staged and not mixed due to the existence of conflicts. What is the best way to reverse this merge and leave the branch on the last commit before this unwanted action?   ...
asked by 04.02.2016 / 19:24
1
answer

Ignoring git folder inside repository

How do I ignore .git / and .gitignore folders within my project? I'm having problems cloning external vendors in my project because of this, every time I clone / down some dependency with the composer it comes with the git folder and when I c...
asked by 25.08.2015 / 13:45
2
answers

Avoid pushing a specific branch to the wrong remote

Hello, Does anyone know how to avoid doing gaps with git? At the next thing: I have a project with 2 configured "remotes" (imagine one of the company - company - and another private - server). I maintain a "branch" that synchronized with t...
asked by 25.07.2015 / 16:45
2
answers

How to deploy with Wordpress

I want to increase the agility of my projects with Wordpress . I usually use git only in themes. When everything is ready, I upload the theme in the traditional way, via FTP. Of course, I know it's wrong and that's not the way to go...
asked by 28.06.2015 / 15:00
1
answer

What files should be inserted in .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 it to my GitHub repository. When creating the project rails generates several files. So far so good, but it turns out that...
asked by 26.05.2015 / 16:03
1
answer

Update files after deploy in Heroku

I deployed my Node.js application to Heroku for the first time and it is working perfectly. However, I edited a file and need to update it, how can I do that? Should I use git push heroku master again or is there another command to use in...
asked by 18.07.2015 / 02:59
1
answer

Problems with certificate to use GIT in https

The GIT repositories I'm accessing are 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 fetch origin fatal: unable to access 'https://<...
asked by 27.08.2014 / 12:04