Giter Club home page Giter Club logo

journal's Introduction

Write for people, computers and food.

Hi. This is the source from my blogue posts published using GitHub Pages, my ebook and other texts published elsewhere.

This repo should stay partially private. It contains work and personal journal and sensitive data. The public_branch branch can be published as public. The private_branch not.

How to do that?

git init # or just use existing and rename master
gvim journal.txt journal_private.txt
# write write write
git add --all
git commit -m "first private commit"
git branch -m master private_branch
git checkout --orphan public_branch
git checkout private_branch -- .
git reset
echo private_stuff >> .gitignore
git add --all
git commit -m "first public commit."
git checkout private_branch
git merge --allow-unrelated-histories -X ours public_branch
git status

On branch private_branch
nothing to commit, working tree clean

git log --graph
 private_branch)
|\  Merge: de55682 5dbe679

| | Date:   Wed May 1 21:39:01 2024 -0300
| |
| |     Merge branch 'public_branch' into private_branch
| |
| * commit 5dbe679aa2466eeaedd1a675a09b4913b56f2270 (public_branch)

|   Date:   Wed May 1 21:38:10 2024 -0300
|
|       first public commit.
|
* commit de55682a3ce3ce55114b05ecf466c664e60f11c6

  Date:   Wed May 1 21:37:01 2024 -0300

      first private commit.

git remote add private <private_address>
git push -u private private_branch
git remote add public <public_address>
git push -u public public_branch
# do not mix public and private upstreams =)

The public folder will contain publishable content, but I am publishing my ebook with the work journal, so I think this will depend of the public =).

If you just cloned this repo start by reading some scripts. I used an operating system called Windows, but it is is pretty workable from Unix env, since uses gawk and stuff. You guys are using Unix stuff yet, right?

Thank you, person from the future, for the interest into my texts. Hope you find something useful here. Bye bye and thank you for all the steak.

journal's People

Watchers

Wanderley Caloni avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.