-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Managing monorepos: nixpkgs developments made easy | ||
|
||
## sync from upstream | ||
|
||
This ensures minimal blob transfers in a sparse checkout: | ||
```bash | ||
# pin the latest hash from the nixpkgs-unstable channel | ||
nix registry pin nixpkgs | ||
|
||
# find the "$rev" hash by inspecting the cached registry | ||
nix registry list | ||
|
||
# fetch the git "$rev" from the remote | ||
git fetch origin "$rev" | ||
|
||
# bump local master to the "$rev" | ||
git switch master | ||
git reset --hard "$rev" | ||
|
||
# sync github remote with upstream from the web interface, | ||
# and then fetch the upstream "$rev" | ||
git fetch origin master | ||
|
||
# reset the remote master to the channel "$rev" | ||
git push --force | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters