Questions tagged as 'git'

1
answer

How to perform automatic pull with Git?

Imagine that I have an environment for testing a web application, where there is a cloned GitHub repository that goes right inside the server, and any modification in it already results in a real-time modification when the user accesses the same...
asked by 21.12.2014 / 17:50
2
answers

Where does Git pull point?

I was reading the Git documentation on pull and I ended up getting confused: So let's create a hypothetical sequence: I've cloned the repository I made a git branch that shows only the master. The command git branch -a s...
asked by 29.08.2017 / 20:22
1
answer

How to keep an updated git repository with another?

I have two repositories in GitHub, the second one being a clone of the first, and for the time being private (for security reasons). I cloned this second on my machine so I could work on it, but besides my own commits I also need to keep it u...
asked by 12.11.2015 / 01:54
1
answer

Netbeans project with git and Composer repository

I'm developing a PHP project that requires two separate libraries. I am required to use NETBEANS. To develop the three separately but at the same time and because the main project "MAIN PROJECT" needs the other two, I have idealized: All...
asked by 06.03.2015 / 16:55
1
answer

How to clone / download a repository with only the last commit?

I have read a while ago that it is possible to clone a repository in a more performative way just by downloading the last commit, that is, downloading the repository without previous changes to other commits. How can I do this?     
asked by 09.01.2015 / 16:46
2
answers

Check if git is installed using Node

I'm starting in a desktop application with the use of Electron however I need to check if there is Git installed in the system because it must necessarily use git As the idea is to distribute in Windows, Linux and Mac and the verificat...
asked by 08.08.2017 / 16:15
1
answer

How do I re-commit from a remote branch earlier?

I have an application that has some local and remote branchs, but I had to make a git reset --hard HEAD~1 in the dev and development branches (as in the image below) each of these branches have remote ( remotes / dev / master and re...
asked by 16.06.2014 / 18:19
1
answer

How do branches work in GIT in relation to SVN?

It is known that in SVN, when you create a branch (or even a tag ), a copy of the trunk files is made to the folder inside the < strong branches . Gradually I've been using git and realized that when creating a branch it does...
asked by 18.09.2015 / 18:26
3
answers

How to use GIT connected on the server?

I've been looking for some time on how I could replace my filezilla and got some answers that it's possible to use git as an intermediate so I can run my site / project according to what's in that repository . I also found a article a...
asked by 05.10.2015 / 17:17
2
answers

How to commit files deleted from the local project?

DESCRIPTION: I have a relatively common problem, but it takes a lot of time on the project, so let's go. Suppose I have a project with the directories examples: css , dist , src , js , fonts , and some files in the root like index.htm...
asked by 29.11.2014 / 21:59