Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Non interactive GIT usage

Is there an analog for SVN --non-interactive command line argument in GIT?

I am using GIT via gitpython library and have a problem in some places - program freezes. In this case GIT is trying to ask something from the user, but it can't do it. I want to disallow the attempts.

Here is process in freeze:

$ pstree -ap 14712
python,14712 src/auto-release
└─git,14720 pull --strategy=recursive -Xtheirs -v origin +master:origin/master
    └─git-merge,14721 -s recursive -Xtheirs -v Merge branch 'master' of 172.17.2.22:~/test-repo HEAD 920e34cb7267f702b7a1bb3af93619175cb566f0
like image 813
Dmitry Bogun Avatar asked Nov 23 '12 13:11

Dmitry Bogun


People also ask

What is git and its uses?

What is Git? Git is a DevOps tool used for source code management. It is a free and open-source version control system used to handle small to very large projects efficiently. Git is used to tracking changes in the source code, enabling multiple developers to work together on non-linear development.

What is opposite of git clone?

git pull-request. What's the opposite of git clone , instead of downloading your code from GitHub, uploads your changes and code back to GitHub? git push.

Is git necessary to use?

Git is a very important tool used in software development because of the advantages it provides. Even if you are or plan to be a data scientist, I suggest to learn Git to a certain level.

Is git online or offline?

Yes, you can use Git offline. Git only requires an Internet connection when you use commands such as git remote , git pull , and git push with a remote repository that is stored on an Internet server.


1 Answers

You can use the environment variable

GIT_TERMINAL_PROMPT

If this environment variable is set to 0, git will not prompt on the terminal (e.g., when asking for HTTP authentication).

like image 196
Sjoerd Avatar answered Oct 25 '22 18:10

Sjoerd