How to copy a file in a git tree? -



How to copy a file in a git tree? -

i've started learning git , can't find reply this.

what mean copying (.config) file git tree?

do have re-create it, .git directory or else?

later edit: supposed duplicate distro, have re-create 1 of config-* files visible ls /boot in .config file in git tree.

on linux kernel newbies found:

duplicating current config

if you're trying see if bug fixed, want duplicate configuration on running kernel. config file stored somewhere in /boot/. there might several files start config, want 1 associated running kernel. can find running uname -a , finding config file ends kernel version number. re-create file source directory .config. or run command:

cp /boot/config-uname -r* .config

will work if changed directory /git or not create sense @ all?

do mean git config file or else ? should never write straight .git directory. instead interact using git commands. in general, adding file tree means : - committing file - pushing right branch.

git add together relative-path/file git commit -m 'some comment' git force yourbranch

if need add together git configuration, have phone call

git config <some option>

did help ?

best regards

git

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -