Questions tagged as 'git'

1
answer

How to create a project in GitLab using git?

We can easily create a project in GitLab and "synchronize" it with git : $ git clone [email protected]:user/teste.git But what about backwards? Create the folder and the local project, and send as a "new" in GitLab ?     
asked by 30.08.2018 / 19:45
1
answer

Is there any way to go back to the last branch in git?

The title says it all. Around and half we use git as follows: git checkout branch_x git checkout branch_y git checkout branch_x x can be master , or any feature branch any. I'd like to know if there is any way to ge...
asked by 16.11.2015 / 16:53
1
answer

Clone private repository passing password as parameter

I have a script on my production server that automates the whole process of checking for new commits, generating the build and posting the new changes. It works perfectly with open repositories, by running the code: git clone -b meu-branch...
asked by 17.02.2016 / 03:45
1
answer

What does this command mean in git "^"?

I do not like to be using commands without knowing the meaning, so could anyone tell me what this command means in git: ^ ?     
asked by 26.02.2018 / 18:24
1
answer

GIT Change branch without committing or discarding current changes

I need to send my current changes to another branch. When giving git checkout branch-name it asks me to commit or change the current changes, I do not want any of these options. How can I proceed?     
asked by 18.05.2017 / 22:44
3
answers

Recover a file in GIT

I have two folders (test-git1 and test-git2), in both I gave a clone of the server repository. If I delete an unintentional file inside the git1-test folder, how do I get it back? I tried to give git pull origin master , but this messag...
asked by 10.04.2015 / 20:45
1
answer

Maintenance environment for ecomerce - PrestaShop

I've taken a service to support e-commerce on the PrestaShop platform. I found the environment configured this way: The main application files are on bitbucket. To do maintenance, I change the files via git and do the deploy of th...
asked by 13.03.2017 / 17:25
2
answers

Should I use rebase?

I'm working on a redesign of our web application, in a separate branch, say new_interface . Meanwhile, other developers are still in the master branch, mostly resolving bugs. While some files may differ considerably, I need to recov...
asked by 25.05.2015 / 17:14
1
answer

Permission and error error 403 in Git push

I'm trying to push my repository, however, git always gives me this error:    remote: Permission to danielswater / social.git denied to MichelleG-.   fatal: unable to access ' link ': The requested URL returned error: 403 I do not know wh...
asked by 12.01.2017 / 14:16
1
answer

Git repository repository on local machine and GitHub

Is there a way to replicate a particular repository between GitHub and a local machine on which the team uses? In case of failure of the GitHub servers the team uses the local server and as soon as the GitHub servers come back on, the latest...
asked by 23.09.2015 / 04:33