EnglezăFrancezăSpaniolă

Ad


Favicon OnWorks

git-replace - Online in the Cloud

Run git-replace in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command git-replace that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NUME


git-replace - Create, list, delete refs to replace objects

REZUMAT


merge înlocui [-f] <object> <replacement>
merge înlocui [-f] --edit <object>
merge înlocui [-f] --graft <commit> [<parent>...]
merge înlocui -d <object>...
merge înlocui [--format=<format>] [-l [<pattern>]]

DESCRIERE


Adăugă un înlocui reference in refs/replace/ namespace.

Numele înlocui reference is the SHA-1 of the object that is replaced. The content
a înlocui reference is the SHA-1 of the replacement object.

The replaced object and the replacement object must be of the same type. This restriction
can be bypassed using -f.

Unless -f is given, the înlocui reference must not yet exist.

There is no other restriction on the replaced and replacement objects. Merge commits can
be replaced by non-merge commits and vice versa.

Replacement references will be used by default by all Git commands except those doing
reachability traversal (prune, pack transfer and fsck).

It is possible to disable use of replacement references for any command using the
--no-replace-objects option just after merge.

For example if commit foo has been replaced by commit bar:

$ git --no-replace-objects cat-file commit foo

shows information about commit foo, while:

$ git cat-file commit foo

shows information about commit bar.

GIT_NO_REPLACE_OBJECTS environment variable can be set to achieve the same effect as
the --no-replace-objects option.

OPŢIUNI


-f, --forță
If an existing replace ref for the same object exists, it will be overwritten (instead
of failing).

-d, --delete
Delete existing replace refs for the given objects.

--edit <object>
Edit an object’s content interactively. The existing content for <object> is
pretty-printed into a temporary file, an editor is launched on the file, and the
result is parsed to create a new object of the same type as <object>. A replacement
ref is then created to replace <object> with the newly created object. See git-var(1)
for details about how the editor will be chosen.

--brut
When editing, provide the raw object contents rather than pretty-printed ones.
Currently this only affects trees, which will be shown in their binary form. This is
harder to work with, but can help when repairing a tree that is so corrupted it cannot
be pretty-printed. Note that you may need to configure your editor to cleanly read and
write binary data.

--graft <commit> [<parent>...]
Create a graft commit. A new commit is created with the same content as <commit>
except that its parents will be [<parent>...] instead of <commit>'s parents. A
replacement ref is then created to replace <commit> with the newly created commit. See
contrib/convert-grafts-to-replace-refs.sh for an example script based on this option
that can convert grafts to replace refs.

-l , --listă
List replace refs for objects that match the given pattern (or all if no pattern is
given). Typing "git replace" without arguments, also lists all replace refs.

--format=
When listing, use the specified <format>, which can be one of mic de statura, mediu și lung.
When omitted, the format defaults to mic de statura.

FORMATE


The following format are available:

· mic de statura: <replaced sha1>

· mediu: <replaced sha1> → <replacement sha1>

· lung: <replaced sha1> (<replaced type>) → <replacement sha1> (<replacement type>)

CREAREA ÎNLOCUIRE OBIECTE


git-filter-ramură(1), obiect git-hash(1) și git-rebase(1), among other git commands, can
be used to create replacement objects from existing objects. The --edit option can also be
folosit cu merge înlocui to create a replacement object by editing an existing object.

If you want to replace many blobs, trees or commits that are part of a string of commits,
you may just want to create a replacement string of commits and then only replace the
commit at the tip of the target string of commits with the commit at the tip of the
replacement string of commits.

Use git-replace online using onworks.net services


Servere și stații de lucru gratuite

Descărcați aplicații Windows și Linux

  • 1
    Pluginul Eclipse Tomcat
    Pluginul Eclipse Tomcat
    Pluginul Eclipse Tomcat oferă
    integrare simplă a unui servlet tomcat
    container pentru dezvoltarea java
    aplicatii web. Ne poți alătura pentru
    discutie...
    Descărcați pluginul Eclipse Tomcat
  • 2
    Desktop WebTorrent
    Desktop WebTorrent
    WebTorrent Desktop este pentru streaming
    torrente pe Mac, Windows sau Linux. Aceasta
    se conectează atât la BitTorrent, cât și la
    colegii WebTorrent. Acum nu există
    trebuie sa astepti...
    Descărcați WebTorrent Desktop
  • 3
    GenX
    GenX
    GenX este un program științific de rafinat
    reflexivitatea razelor X, neutroni
    reflectivitate și raze X de suprafață
    date de difracție folosind diferența
    algoritm de evolutie....
    Descărcați GenX
  • 4
    pspp4windows
    pspp4windows
    PSPP este un program de statistică
    analiza datelor eșantionate. Este gratuit
    înlocuitor pentru programul proprietar
    SPSS. PSPP are atât bazate pe text, cât și
    ne grafice...
    Descărcați pspp4windows
  • 5
    Extensii Git
    Extensii Git
    Git Extensions este un instrument UI de sine stătător
    pentru gestionarea depozitelor Git. De asemenea
    se integrează cu Windows Explorer și
    Microsoft Visual Studio
    (2015/2017/2019). E...
    Descărcați extensii Git
  • 6
    eSpeak: sinteza vorbirii
    eSpeak: sinteza vorbirii
    Motor Text to Speech pentru engleză și
    multe alte limbi. Dimensiune compactă cu
    pronunție clară, dar artificială.
    Disponibil ca program de linie de comandă cu
    mulți ...
    Descărcați eSpeak: sinteza vorbirii
  • Mai mult »

Comenzi Linux

Ad