Advertising
Advertising

How To: Use Git to Version Your Writing

How To: Use Git to Version Your Writing

If you are a writer you may have ran into this problem. You are writing like mad, moving things, changing the way something flows. As you are getting into it, you realize.

Hey! This isn’t what I want to say at all! I need to go back.

You feverishly tap CTRL + z (or Command + z for you Mac aficionados) and come to find that your favorite “no frills” text editor has lost your undo history or you aren’t quite sure where you want to go back to.

Good for more than just development

Git is a piece of software that allows the user to control the versions of files in a directory. It allows the user to ‘commit’ a snapshot of any directory to a ‘repository’ that tracks all of the changes between versions of the files.

Git is awesome for development. But, what I have found is that it is awesome for writing as well.

Git allows me to commit my writing every so often so I can get back to where I want to be. It also allows me to ‘branch’ my writing so I can separate it from everything else.

Let’s take a look at how you can use git to control your writing versions.

Installation, Initialization, and committing

I will be covering Windows and Mac here. For you Linux geeks; you should already know how to use git!

Advertising

To install git do the following:

    For Windows:

    Go to git-scm.com, click on the Windows link to the right and download the latest version. Install via the executable and choose the most standard settings. When you get to the Adjusting your PATH environment screen, select the first option, Use Git Bash only and hit next. When at the Configuring the line ending conversions, select the third option, Checkout as-is, commit as-is and hit next. After the install completes click “Finish”.

    For Mac:

    Go to git-scm.com, click on the Mac OS X link to the right and then click the latest .DMG file in the list to download. Launch the DMG from your Downloads directory and double-click the git PKG. Follow the on-screen instructions and enter your user credentials. Close the installer when it is complete.

    OK, now that you have git installed we are going to get geeky and use a terminal in both Windows and Mac.

    To get to the git terminal in Windows go to the Start button and search for ‘git’. Click on ‘Git Bash’ to get to your git command line interface.

    For Mac just open a terminal by going to Applications > Utilities > Terminal.

    Advertising

    Here is where the fun begins. Let’s say you have a folder where you store a bunch of writing. For me that is in my Dropbox/writing folder. If I want to start tracking that directory I can change to that directory via command line then initialize a git repository.

    This will be close to the same on both platforms. To change to a certain directory use the command:

    cd [path-to-your-writing-directory]

    Of course fill in your own directory. My command looks like this in Windows:

      The backslash after ‘My’ is used to tell the terminal that the space after the word ‘My’ is there. You can autocomplete your paths by starting to type a directory and then hitting the ‘Tab’ key.

      And this on my Mac:

        Once you are at the directory you have all of your writing in you can issue the command git init which initializes a blank “repository” for your directory. This puts a .git directory that is initialized. Once your repository is initialized you can add the files to the repository by typing

        Advertising

        git add .

        or

        git add [some-name-of-a-file]

        to add only one file.

        After that you can commit your files to the repository by typing

        git commit -m “This is my first commit (or some other message)”

        ‘-m’ is used to tell git that you want to put a message with your commit. Now you have made your first commit to your new git repository! Congrats, you geek.

        More on committing and branching

        OK, I know that was a little technical, but you are over the hump now. If you want to learn more about git though in your free time, check out Pro Git. It’s free and it is the best tutorial on the inner workings of git.

        Advertising

        So, what committing does is take a “snapshot” of the directory structure or whatever files you told your git repository to watch. If you make a change to a sentence in one of the files that your repository is watching after you just committed and type ‘git status’ you will be presented with the changes that have been made to the watched files. This lets you know that you have “uncommitted” changes to your watched files. You can then easily commit them by issuing the git commit command.

        Another neat feature of git is branching. Branching is the idea of making a totally separate branch of your repository. You can create a new branch by typing:

        git checkout -b this-is-a-new-branch

        You can then make changes to your tracked files totally separate from your “master” branch. This allows you to take different paths with your writing without screwing up something else that was committed.

        To switch back to your “master” branch, type:

        git checkout master

        Also, remember to commit any changes before creating and changing to new branches. If you don’t you may run into issues down the line where some changes get dropped.

        More to come

        Let us know if you think that this is helpful or want to learn more about using git to track files leave some messages in the comments.

        Git is a super application; one that I use everyday. I can’t praise it enough. But, remember, it doesn’t have to be just used by geeks and hackers, writers can use it to keep track of their work and to feel free to explore other writing avenues without losing valuable work they have already created.

        More by this author

        CM Smith

        A technologist and writer who shares advice on personal productivity, creativity and how to use technology to get things done.

        To Automate or not to Automate Your Personal Productivity System How to Beat Procrastination: 29 Simple Tweaks to Make Design Is Important: How To Fail At Blogging 7 Tools to Help Keep Track of Goals and Habits Effectively 6 Unexpected Ways Journaling Every Day Will Make Your Life Better Why Getting Things Done is the Best Productivity System For You

        Trending in Technology

        1 10 Best Calendar Apps to Stay on Track in 2020 2 10 Smartest Productivity Software to Boost Work Performance 3 5 Best Language Learning Apps to Master a New Language 4 11 Meeting Scheduler Apps to Boost Your Productivity 5 To Automate or not to Automate Your Personal Productivity System

        Read Next

        Advertising
        Advertising
        Advertising

        Last Updated on December 9, 2019

        10 Best Calendar Apps to Stay on Track in 2020

        10 Best Calendar Apps to Stay on Track in 2020

        The success of our day is largely dependent on the quality of our planning. Not to miss out anything in their to-dos, some people prefer to make a list of upcoming tasks in a notebook, while others have long started using digital technology solutions.

        Calendar applications are some of the main tools that are worth using to organize our life and plan your time carefully.

        Many people have switched to specific tools; however, there are still some who do not use calendars on a daily basis. They may find some applications uncomfortable to use, non-functional, or expensive.

        In this article, we are going to check out the best calendars apps to help you stay organized.

        1. Cal Calendar

          Cal Calendar has recently appeared on the market of mobile applications (Android, iOS). It is the brainchild of the development team of Any.do that features impressive functionality and well-thought-out design.

          The application comes with many great features, including support for Exchange and Google Calendar, widgets, voice recording, and many more.

          Cal Calendar has direct integration with Any.Do To-Do List, which gives you a unique tandem of two applications.

          Apart from its extended functionality, Cal Calendar is easy to use. The creation of events is very simple and fast.

          What is more, depending on the name of the event, the application automatically adds contacts and geolocation data to the entry description. You can even import your lists and entries from Any.do.

          Cal Calendar is a great option for any type of user. It is very convenient and doesn’t overcomplicate the mode of display.

          Another good thing is that this tool is available for free, so you can use it without spending a dime for the software.

          Available for iOS and Android

          2. Google Calendar

            Google Calendar is the official calendar for Android devices that has been tested out by many users around the globe. If you are right now trying to get away from it, consider changing your mind.

            Since this application is installed on most Android devices by default, many users think that there is nothing special in this program. They are wrong.

            Advertising

            Google has been updating its calendar for quite a few years, and now it comes in Material Design with advanced event features, direct integration into other Google services (for example, supports reminders and Google Now), and comes with Exchange support.

            The program is super easy and will not cost a dime for you. It is a good thing, right?

            Available for iOS and Android

            3. Jorte Calendar

              Jorte Calendar is one of the most popular calendar applications in the Google Play store.

              The program features a wide range of configuration options, with many design alternatives. You can adjust display mode to your needs and view calendar entries sorted by month, week, or day (by hours). It is convenient for quickly picking the desired date, using task bars, and setting reminders.

              Apart from its ordinary information storing function, this application can be a special cloud service, Jorte Cloud, allowing you to synchronize calendars, schedules, and task lists on multiple devices. The application also supports data importing from Google Calendar.

              For those paying attention to the program design, there is also Jorte Store, where you can buy styles and icons to personalize the calendar. This feature makes Jorte is one of the brightest calendar applications.

              A basic version of the app is free of charge, so if you do not want to spend money on a calendar application, it is a good option.

              Available for iOS and Android

              4. Business Calendar

                Business Calendar is geared towards people who use their calendar for work purposes and business task planning. It offers different modes with wide configuration capabilities.

                The application gives a default view mode by months, and events can be marked in different colors. Display modes/ sorting can be adjusted to your needs (by month, day, year, or events).

                You can also set a multi-day viewing mode to see how things look for the next few days. Scrolling up and down moves you by month, and if you check a few days, they will be shown in a more detailed form.

                The day display mode offers hourly scheduling, and the schedule mode provides a detailed schedule for a single event.

                Business Calendar is a great tool for planning/ scheduling cases, tasks, and events. There is a support for recurring events, which can be set up in just a few clicks.

                Advertising

                Having purchased software, you can use it to import and export other calendars, delete, copy, or move several events at the same time.

                Android Business Calendar application may seem somewhat chaotic, but it works fine and is easy to work with if you play with it for a while.

                A full version of the application is available for $4.99, but you can also find a free version for the app test drive.

                Available for Android

                5. Calendar

                  Calendar is a relatively new app. It works as a web app and for both iOS and Android devices. It is an intelligent app that learns your contacts, schedule and tasks. It also helps you schedule and arrange meetings according to your available time slots.

                  A good thing about Calendar is that it allows you to sync up with other calendars you use such as Apple Calendar and Google Calendar. And so you can manage all the calendars you have in one place.

                  Calendar also gives you analytics of your meetings, giving you a clear picture on how you can improve your time management.

                  Available for Desktop, and iOS

                  6. aCalendar

                    aCalendar opens our collection of top 10 calendar applications available on the market today. With its appealing design, easy navigation, and great functionality, it is one of the most popular calendar apps in our list.

                    Some of extra functions include color schemes for each case type (48 colors to choose from), different types of demonstrations, different widgets, moon phases, and much more.

                    Taking into account it functionality, aCalendar is a reliable calendar application that has an easy-to-navigate interface with three display options. Scrolling from side to side allows you to switch between the display modes of the month, week and day.

                    When scrolling down and up, you are moving through the calendar at intervals in accordance with the selected display mode.

                    Apart from its time planning feature, aCalendar synchronizes photos from contact lists or social networks to remind you about birthdays, anniversaries, or any other special dates.

                    The program also supports data transfer through NFC and full-screen widgets, which eases your work with any data.

                    Advertising

                    The program is available for free, but you can also get even more features if you buy the extended version of software for $4.99.

                    Available for Android

                    7. DigiCal Calendar

                      DigiCal Calendar is very similar to Cal Calendar in the fact that the application focuses on design more than on its functionality. However, this doesn’t mean that the application doesn’t serve the purpose.

                      With this calendar application, you can synchronize all your calendars and view them in different ways.

                      Along with the basic functions, this program comes with support for Google Calendar, Outlook, and includes some unique and interesting features. You can match keywords to the image or set up a dark theme.

                      The app can even show you the weather forecast for three days. There are many other features that deserve the attention of people who really like to use calendar applications.

                      Available for Android

                      8. SolCalendar

                        SolCalendar can be called a universal application. It claims to be an all-in-one digital solution having a basic calendar functionality combined with some other advanced features, such as weather forecast for a specific day.

                        The application supports Google Calendar, as well as tasks, widgets, lunar calendar and even Foursquare.

                        Those searching for a calendar application to cover just everything in its functionality, SolCalendar is a program to consider. There are a lot of interesting things in this application; the program does an excellent job working in “all-in-one” mode.

                        Test SolCalendar – the application is available for free. You can test it out without purchasing the service.

                        Available for Android

                        9. Today Calendar

                          Today Calendar is one of the most hip and edgy calendars in our list. The solution was one of the first ones that really embraced Material Design and remains one of the few that adhere to the neat style.

                          Advertising

                          The calendar application offers bold colors, simple controls, and great functionality. This is not as heavy an application as many others; it will not eat all the memory of your device.

                          If you are not searching for something complicated and over-functional, Today Calendar is what you need. You can always test the application before paying for it – the program is available for free.

                          Available for Android

                          10. Calendar Widget: Month

                            Sometimes people do not need a heap of calendar applications. They would prefer to have one efficient calendar widget.

                            Calendar Widget: Month perfectly fills this niche and meets all the needs of a modern user. It has some features of an ordinary calendar, but the real great thing about this software is that it has 80 or more themes in its library.

                            The design of the application is great; the themes are perfectly tuned. There are options for almost any theme of your smartphone. The only drawback is the fact that the widget memory is not too large, and you should be ready for it.

                            This simple calendar widget was created in the image and semblance of widgets from Yahoo. The widget window displays one calendar month with the ability to go to the previous and move to the next one.

                            If you need a simple and affordable calendar to plan your tasks and affairs for one month, this widget is ideal for you. Calendar Widget: Month is so simple that it does not even have Google Calendar support.

                            At the moment, it does not have the function of connecting any third-party calendars and services. Developers allow the possibility of introducing support for Google service as an addition to the widget, if users request to have this opportunity.

                            Available for Android

                            Our Verdict

                            Searching for the right application to manage your various calendars and plan your busy day can sometimes turn into a streak of obstacles.

                            Most of us need flexible applications that can be easily used to manage our tough schedule. The application should have all necessary time planning functions and be intuitive.

                            Stylish design and limitless compatibility also matter. It is not always easy to find such a program.

                            The above digital calendar solutions fall under the category “worth” of being used. They are modern, multifunctional, easy, and easy. Pick the one you like!

                            More Productivity Apps

                            Featured photo credit: Unsplash via unsplash.com

                            Read Next