Commit graph

197 commits

Author SHA1 Message Date
Joey Hess
5df89d58c7
git-annex pull and push
Split out two new commands, git-annex pull and git-annex push. Those plus a
git commit are equivilant to git-annex sync.

In a sense, git-annex sync conflates 3 things, and it would have been
better to have push and pull from the beginning and not sync. Although
note that git-annex sync --content is faster than a pull followed by a
push, because it only has to walk the tree once, look at preferred
content once, etc. So there is some value in git-annex sync in speed, as
well as user convenience.

And it would be hard to split out pull and push from sync, as far as the
implementaton goes. The implementation inside sync was easy, just adjust
SyncOptions so it does the right thing.

Note that the new commands default to syncing content, unless
annex.synccontent is explicitly set to false. I'd like sync to also do
that, but that's a hard transition to make. As a start to that
transition, I added a note to git-annex-sync.mdwn that it may start to
do so in a future version of git-annex. But a real transition would
necessarily involve displaying warnings when sync is used without
--content, and time.

Sponsored-by: Kevin Mueller on Patreon
2023-05-16 16:51:07 -04:00
Joey Hess
97439f4233
comment
and reword possibly slightly confusing part of walkthrough
2021-09-21 13:23:57 -04:00
Joey Hess
20741b1eb4
Automatically convert direct mode repositories to v7 with adjusted unlocked branches
* Automatically convert direct mode repositories to v7 with adjusted
  unlocked branches and set annex.thin.
* init: When run on a crippled filesystem with --version=5,
  will error out, since version 7 is needed for adjusted unlocked branch.
* direct: This command always errors out as direct mode is no longer
  supported.
* indirect: This command has become a deprecated noop.
* proxy: This command is deprecated because it was only needed in direct
  mode. (But it continues to work.)

Also removed mentions of direct mode throughough the documentation.

I have not removed all the direct mode code yet.
2019-08-26 15:05:25 -04:00
Joey Hess
f4c49b8f81
this is not all run as root 2019-03-27 11:15:03 -04:00
Joey Hess
f386d8556d
remove spam
This particular page is attacting spam, I assume because of google rank.
I will have to lock comments to it I'm afraid.
2018-12-03 13:36:11 -04:00
techcustomersupport
3263fd42f2 Added a comment: adding a remote 2018-11-26 11:43:08 +00:00
techcustomersupport
95e1c722cb removed 2018-11-26 11:42:18 +00:00
techcustomersupport
7bb6320c60 Added a comment: adding a remote 2018-11-26 11:41:11 +00:00
Joey Hess
60ba0371b6
despam 2018-11-21 11:12:52 -04:00
RannyJohns
bb61cf4aae Added a comment: Nice post 2018-11-21 06:16:06 +00:00
Joey Hess
bb059ce8ef
remove spam; user banned 2018-11-15 15:09:59 -04:00
Elina_Williams
4d25933f8b Added a comment 2018-11-15 06:48:31 +00:00
Elina_Williams
3bdf473edc removed 2018-11-15 06:46:18 +00:00
Elina_Williams
80e400cc65 Added a comment 2018-11-15 06:45:04 +00:00
slackermesut@265fdbc657a03028da3a213cbb9f74a9d621c8ab
f376fd4f8c Added a comment 2018-10-13 20:47:44 +00:00
Joey Hess
0361937ee3
response 2018-03-02 15:10:51 -04:00
elmimmo
9cde237c47 Added a comment: Remotes when using multiple repos 2018-01-18 07:02:19 +00:00
elon.bing@6534c6b616a8fda498b5bfa4e48ca5a1ebb7c48e
72e28dca89 Fixed typo: added "that" to "to require [that] more than one copy of a file exists" 2017-11-02 22:46:47 +00:00
Joey Hess
748ecc51d8
remove recent addition of receive.denyNonFastForwards to walkthrough
That is a dangerous setting, and not needed.

I tried the walkthrough as it was without it, and syncing in the USB
remote worked ok. There was a problem merging from origin/master, since
that branch didn't exist yet, but that didn't prevent sync from working
at all.

To avoid even that problem, reordered the walkthrough, so files get
committed to the repo before the remote gets set up.

This commit was sponsored by Ole-Morten Duesund on Patreon.
2017-02-13 16:02:53 -04:00
alanz
ac45e758f4 spacing 2017-01-31 11:34:43 +00:00
alanz
e5adeba3ac Otherwise the USB remote cannot sync 2017-01-31 11:33:32 +00:00
https://launchpad.net/~stephane-gourichon-lpad
b5e7bb35a3 Added a comment: Bitten again by "E" backend, wish "e" backend. 2016-10-30 19:19:22 +00:00
dusty@dba9614abc02e013134f95c2c59181a6c12a8468
1fc419e447 Added a comment: Nevermind - broken symlinks will be fixed on commit 2016-08-23 21:53:05 +00:00
dusty@dba9614abc02e013134f95c2c59181a6c12a8468
82b347d5d9 Added a comment: moving files with git mv can yield broken symlink 2016-08-23 21:48:59 +00:00
Joey Hess
bd4ad3d2e8
comment 2016-03-14 16:37:55 -04:00
Joey Hess
7125a1fb27
rename files containing :
This is mostly to let the repo check out on windows w/o using cygwin's git.

But, bash completion is also crap with : , so ..
2016-03-12 12:57:18 -04:00
tom_clune
288326f121 Added a comment: dropping files after changing branches/tags 2016-02-24 22:19:00 +00:00
Joey Hess
bb6719678e
update walkthrough and add tip about using v6 unlocked files
The walkthrough should make sense now both for v5 and v6 repo users.
2015-12-26 16:47:23 -04:00
http://joeyh.name/
a6dec1c9db Added a comment 2015-12-10 18:58:46 +00:00
fbicknel@01ede624a1a56b3998b823e9b60da0ff81cccb16
4b31d9c404 Added a comment: Complete removal 2015-12-10 16:16:43 +00:00
Joey Hess
50949b11ab
response 2015-10-15 14:51:08 -04:00
CandyAngel
19fdf55a0b Added a comment 2015-10-15 10:59:59 +00:00
ptspts@d0db5f2b8c4e6befae8899f31c117d093913f43e
a3d6da5afb Added a comment: renaming oesn't work as expected when changing the extension 2015-10-15 08:54:08 +00:00
Joey Hess
888fc6292d show git-annex init w/o description for laptop, where default would suffice. And for init of usb drive, be clear that it's a description, not a name. 2015-10-06 15:59:43 -04:00
Joey Hess
b3f183bc3f link to the centralized_git_repository_tutorial 2015-08-05 14:15:20 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnWvnTWY6LrcPB4BzYEBn5mRTpNhg5EtEg
4f11f9b539 I hope these notes do not make this walkthrough page too big. 2015-08-01 22:29:25 +00:00
Joey Hess
514776662d remove possibly incorrect statement about walkthrough not making a direct mode repo -- depends on OS and filesystem 2015-01-20 12:43:18 -04:00
Joey Hess
05bb05b385 add new walkthrough chapter on using special remotes 2015-01-20 12:41:49 -04:00
Jean Jordaan
c011fe156d Get rid of mysterious "_why_" 2014-12-20 14:18:24 +02:00
Joey Hess
1970563dd9 comment and associated todo 2014-10-31 16:39:19 -04:00
https://www.google.com/accounts/o8/id?id=AItOawn3p4i4lk_zMilvjnJ9sS6g2nerpgz0Fjc
be0523f871 Added a comment: Keep historical data, but delete data never referenced 2014-10-26 12:06:25 +00:00
Joey Hess
4ae25032c6 maybe better note for direct mode, although I dislike the walkthrough being complicated by direct mode at all 2014-08-12 14:30:44 -04:00
https://www.google.com/accounts/o8/id?id=AItOawnG_weCiH6IleQfVmRPmFJflHQMHdAcDkU
54f3ff878c add a note about direct mode 2014-07-25 07:57:21 +00:00
Joey Hess
d3832fab5c
remove setup_git page
There were two problems with this page:

* It didn't explain how to set up git.
* It's not necessary to set up git. git-annex init detects when git needs
  configuration and automatically configures it.
2014-05-18 11:26:11 -04:00
https://www.google.com/accounts/o8/id?id=AItOawl3r3BRaUTTVrkwDJCIr1vSAVFXy4l-zY8
a8d41bd365 2014-05-18 04:38:33 +00:00
https://www.google.com/accounts/o8/id?id=AItOawkexhIpGcYa22aPQtLm-StpHiF-MHYPh5w
8cc4df580b Fix more copy and paste errors 2014-05-15 23:26:04 +00:00
Joey Hess
c2c36886e1
fix paste-o 2014-05-15 16:43:05 -04:00
Joey Hess
de0c10ae5b
fix paste-o 2014-05-15 16:42:37 -04:00
Robie Basak
4184566627 ddar special remote 2014-05-15 16:32:44 -04:00
Joey Hess
f80f0e12fe Simplified repository description line format. The remote name, if any, is always in square brackets after the description. 2014-04-26 21:28:49 -03:00