Skip to content

Commit

Permalink
Merge pull request #27 from uchicago-cs/git-solo
Browse files Browse the repository at this point in the history
I've made a few small changes but, overall, everything looks good. Like the Linux tutorial, it might make sense for someone (who hasn't already been involved in writing this tutorial) to work through the tutorial in case they catch any remaining issues with the tutorial.
  • Loading branch information
borjasotomayor authored Jul 27, 2024
2 parents 6567126 + e20b729 commit 7dee357
Show file tree
Hide file tree
Showing 39 changed files with 2,069 additions and 1,539 deletions.
14 changes: 10 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ help:

.PHONY: help Makefile

_static/linux-tutorial-files.zip: tutorials/linux-tutorial-files/*
(cd tutorials; zip -r ../_static/linux-tutorial-files.zip linux-tutorial-files/;)
_static/linux-tutorial-files.zip: tutorials/files/linux-tutorial-files/*
(cd tutorials/files/; zip -r ../../_static/linux-tutorial-files.zip linux-tutorial-files/;)

tutorials/linux-tutorial-files/*:
tutorials/files/linux-tutorial-files/*:
@:

_static/git-basics-tutorial.zip: tutorials/files/git-basics-tutorial/*
(cd tutorials/files/; zip -r ../../_static/git-basics-tutorial.zip git-basics-tutorial/;)

tutorials/files/git-basics-tutorial/*:
@:

# For the deploy target to work, a worktree must be created
Expand All @@ -26,7 +32,7 @@ tutorials/linux-tutorial-files/*:
#
# git worktree add -B gh-pages _build/html origin/gh-pages

deploy: _static/linux-tutorial-files.zip
deploy: _static/linux-tutorial-files.zip _static/git-basics-tutorial.zip
echo gitdir: $(shell pwd)/.git/worktrees/html > $(BUILDDIR)/html/.git
touch $(BUILDDIR)/html/.nojekyll
git --work-tree=$(BUILDDIR)/html/ --git-dir=$(BUILDDIR)/html/.git stash --include-untracked
Expand Down
Binary file added _static/git-basics-tutorial.zip
Binary file not shown.
10 changes: 8 additions & 2 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,14 @@ This guide is divided into the following sections:
:hidden:
:caption: Git Tutorials

Git Basics <tutorials/git-basics.rst>
Advanced Git <tutorials/git-advanced.rst>
Introduction <tutorials/git-intro.rst>
Local Repositories <tutorials/git-local.rst>
Preparing to use GitHub <tutorials/git-prepare-github.rst>
Remote Repositories <tutorials/git-remote.rst>
Discarding Changes and Unstaging <tutorials/git-discarding-changes.rst>
Viewing the Commit Log <tutorials/git-commit-log.rst>
Working from Multiple Locations <tutorials/git-multiple-locations.rst>
Working with Branches <tutorials/git-branches.rst>

.. toctree::
:maxdepth: 2
Expand Down
4 changes: 4 additions & 0 deletions tutorials/files/git-basics-tutorial/hello.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
print("Hello!")
print("Hello, world!")
print("Hello, universe!")

4 changes: 4 additions & 0 deletions tutorials/files/git-basics-tutorial/hola.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
print("hola!")
print("hola, mundo!")
print("hola, universo!")

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 7dee357

Please sign in to comment.