You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sync code between two machines in the same relative directory, i.e. your GOPATH.
Examples (bq is a remote Linux host, . is your local machine i.e. perhaps a MacBook)
All paths are relative to cwd on the machine where ssync is run.
# Copy local pwd (arkade) to bq at the same relative path# ~/go/src/github.com/alexellis/arkade
ssync bq
# Same as above, but in long form
ssync . bq
# If the folder doesn't exist yet, create it and cd to it# mkdir -p ~/go/src/github.com/alexellis/arkade# cd ~/go/src/github.com/alexellis/arkade# "ls" will show an empty directory, now run the pull:
ssync bq .
Use-cases:
I'm going to continue work on another machine (one-off sync)
I'm editing locally, but need a Linux machine to build on (run a continual sync with fsnotify)
Here's how to transfer my work to pick it up later:
Imagine you're working on your Linux desktop:
I'm working on changes in the ssync repo, but I'm about to leave for a trip with my Mac, or maybe I'm going to work from a cafe for the afternoon.
I don't want to push the branch remote, because it's not ready - or it's a mess. Since it's a public repo, maybe I don't actually want to publish those kinds of temporary changes.